Skip to content

Commit de7d322

Browse files
committed
Fix resource leak
1 parent f7c5382 commit de7d322

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

xlib/freetype.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ Picture loadglyphpic(uint8_t *data, int width, int height, int pitch, _Bool no_s
4545
XImage *img;
4646

4747
if(no_subpixel) {
48-
pixmap = XCreatePixmap(display, window, width, height, 8);
49-
5048
pixmap = XCreatePixmap(display, window, width, height, 8);
5149
img = XCreateImage(display, CopyFromParent, 8, ZPixmap, 0, (char*)data, width, height, 8, 0);
5250
legc = XCreateGC(display, pixmap, 0, NULL);

0 commit comments

Comments
 (0)