mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-05-06 06:47:23 -04:00
xwm: fix memory leak
Signed-off-by: xurui <xurui@kylinos.cn>
This commit is contained in:
parent
8d0597e3db
commit
02abf1cd28
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)) {
|
||||
bool ok = xcb_ewmh_get_wm_icon_from_reply(icon_reply, reply);
|
||||
free(reply);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
return ok;
|
||||
}
|
||||
|
||||
static xcb_get_property_cookie_t get_property(struct wlr_xwm *xwm,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue