mirror of
https://github.com/apache/nuttx.git
synced 2026-10-04 04:38:10 +00:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue