mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-05-07 03:48:05 +02:00
xwm: fix memory leak
Signed-off-by: xurui <xurui@kylinos.cn>
(cherry picked from commit 02abf1cd28)
This commit is contained in:
parent
1688cfb814
commit
e7b3e5a973
1 changed files with 3 additions and 5 deletions
|
|
@ -1157,12 +1157,10 @@ bool wlr_xwayland_surface_fetch_icon(
|
|||
return false;
|
||||
}
|
||||
|
||||
if (!xcb_ewmh_get_wm_icon_from_reply(icon_reply, reply)) {
|
||||
free(reply);
|
||||
return false;
|
||||
}
|
||||
bool ok = xcb_ewmh_get_wm_icon_from_reply(icon_reply, reply);
|
||||
free(reply);
|
||||
|
||||
return true;
|
||||
return ok;
|
||||
}
|
||||
|
||||
static xcb_get_property_cookie_t get_property(struct wlr_xwm *xwm,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue