From 103edde4810e35b5a95be4205436239a5ee724c9 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 17 Jun 2021 14:47:28 +0200 Subject: xdg-activation-v1: fix wlr_xdg_activation_v1_create error path --- types/wlr_xdg_activation_v1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3