mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 20:44:39 +08:00
sim/framebuffer: fix memory leak
LeakSanitizer: detected memory leaks in XStringListToTextProperty Signed-off-by: yanxiaowei <yanxiaowei@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
ba73272f67
commit
5c780f6697
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user