Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix memory leak in mouse cursor code

  • Loading branch information...
commit e4a92ede6f49946841dfede36be72381e3abee21 1 parent 507dd1f
@gebart authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  windump.c
View
1  windump.c
@@ -298,6 +298,7 @@ int main(int argc, char** argv)
XQueryPointer(sdpy, swin, &rwin, &cwin, &xmouse, &ymouse, &x, &y, &mask);
XFixesCursorImage* cur = XFixesGetCursorImage(sdpy);
drawMouse(timage, cur, xmouse, ymouse);
+ XFree(cur);
}
XShmPutImage(tdpy, twin, tgc, timage, 0, 0, 0, 0, timage->width, timage->height, False);
Please sign in to comment.
Something went wrong with that request. Please try again.