aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-06-17 14:47:28 +0200
committerSimon Ser <contact@emersion.fr>2021-06-17 14:48:28 +0200
commit103edde4810e35b5a95be4205436239a5ee724c9 (patch)
tree3935a54d36deb591500f63718d819d1b81aba8c0
parentf6e680ef94c4c29eff1f96b5a2717df2b95677ce (diff)
xdg-activation-v1: fix wlr_xdg_activation_v1_create error path
-rw-r--r--types/wlr_xdg_activation_v1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/types/wlr_xdg_activation_v1.c b/types/wlr_xdg_activation_v1.c
index 7fcb50c3..0f44aced 100644
--- a/types/wlr_xdg_activation_v1.c
+++ b/types/wlr_xdg_activation_v1.c
@@ -339,7 +339,7 @@ struct wlr_xdg_activation_v1 *wlr_xdg_activation_v1_create(
&xdg_activation_v1_interface, XDG_ACTIVATION_V1_VERSION, activation,
activation_bind);
if (activation->global == NULL) {
- free(activation->global);
+ free(activation);
return NULL;
}