mirror of
https://github.com/gryf/wmaker.git
synced 2026-10-06 09:20:34 +02:00
Fixed mem leak in wrlib.
This commit is contained in:
1 parent
070680f72e
commit
5637e33524
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user