1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +01:00

Fixed mem leak in wrlib.

This commit is contained in:
dan
1999-04-20 14:45:36 +00:00
parent 070680f72e
commit 5637e33524

View File

@@ -168,7 +168,6 @@ RDestroyXImage(RContext *context, RXImage *rximage)
{
#ifndef XSHM
XDestroyImage(rximage->image);
free(rximage);
#else /* XSHM */
if (rximage->is_shared) {
XSync(context->dpy, False);
@@ -182,6 +181,7 @@ RDestroyXImage(RContext *context, RXImage *rximage)
XDestroyImage(rximage->image);
}
#endif
free(rximage);
}