sim/framebuffer: fix memory leak

LeakSanitizer: detected memory leaks in XStringListToTextProperty

Signed-off-by: yanxiaowei <yanxiaowei@xiaomi.com>
This commit is contained in:
yanxiaowei 2023-05-11 16:31:39 +08:00 committed by Petro Karashchenko
parent ba73272f67
commit 5c780f6697
1 changed files with 2 additions and 0 deletions

View File

@ -106,6 +106,8 @@ static inline Display *sim_x11createframe(void)
XSetWMProperties(display, g_window, &winprop, &iconprop, argv, 1,
&hints, NULL, NULL);
XFree(winprop.value);
XFree(iconprop.value);
/* Select window input events */