xwm: Don't leak render format reply
Spotted by psychon on irc.
This commit is contained in:
@@ -1612,6 +1612,8 @@ wxs_wm_get_resources(struct weston_wm *wm)
|
|||||||
if (formats[i].type == XCB_RENDER_PICT_TYPE_DIRECT &&
|
if (formats[i].type == XCB_RENDER_PICT_TYPE_DIRECT &&
|
||||||
formats[i].depth == 24)
|
formats[i].depth == 24)
|
||||||
wm->render_format = formats[i];
|
wm->render_format = formats[i];
|
||||||
|
|
||||||
|
free(formats_reply);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user