Skip to content

Commit

Permalink
Fix resource leak
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Aug 17, 2014
1 parent f7c5382 commit de7d322
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions xlib/freetype.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ Picture loadglyphpic(uint8_t *data, int width, int height, int pitch, _Bool no_s
XImage *img;

if(no_subpixel) {
pixmap = XCreatePixmap(display, window, width, height, 8);

pixmap = XCreatePixmap(display, window, width, height, 8);
img = XCreateImage(display, CopyFromParent, 8, ZPixmap, 0, (char*)data, width, height, 8, 0);
legc = XCreateGC(display, pixmap, 0, NULL);
Expand Down

0 comments on commit de7d322

Please sign in to comment.