sim/framebuffer: fix memory leak
LeakSanitizer: detected memory leaks in XStringListToTextProperty Signed-off-by: yanxiaowei <yanxiaowei@xiaomi.com>
This commit is contained in:
parent
ba73272f67
commit
5c780f6697
|
@ -106,6 +106,8 @@ static inline Display *sim_x11createframe(void)
|
||||||
|
|
||||||
XSetWMProperties(display, g_window, &winprop, &iconprop, argv, 1,
|
XSetWMProperties(display, g_window, &winprop, &iconprop, argv, 1,
|
||||||
&hints, NULL, NULL);
|
&hints, NULL, NULL);
|
||||||
|
XFree(winprop.value);
|
||||||
|
XFree(iconprop.value);
|
||||||
|
|
||||||
/* Select window input events */
|
/* Select window input events */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue