Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit 4021df3

Browse files
author
leo
committed
host/gop.c: free graphics context in draw() function
==19621== 160 bytes in 1 blocks are definitely lost in loss record 3 of 3 ==19621== at 0x4C2BBAF: malloc (vg_replace_malloc.c:299) ==19621== by 0x4E5926B: XCreateGC (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) ==19621== by 0x10F852: draw (in /home/lsartre/perso/efiwrapper/host/efiwrapper_host-eng) ==19621== by 0x517F4A3: start_thread (pthread_create.c:456) Signed-off-by: leo <[email protected]>
1 parent 8feee46 commit 4021df3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

host/gop.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ static void *draw(void *arg)
252252
XDestroyImage(gop->img);
253253
gop->img = NULL;
254254
}
255+
XFreeGC(gop->display, gop->gc);
255256
XUnmapWindow(gop->display, gop->win);
256257
XDestroyWindow(gop->display, gop->win);
257258
XFree(vi);

0 commit comments

Comments
 (0)