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:
@@ -168,7 +168,6 @@ RDestroyXImage(RContext *context, RXImage *rximage)
|
|||||||
{
|
{
|
||||||
#ifndef XSHM
|
#ifndef XSHM
|
||||||
XDestroyImage(rximage->image);
|
XDestroyImage(rximage->image);
|
||||||
free(rximage);
|
|
||||||
#else /* XSHM */
|
#else /* XSHM */
|
||||||
if (rximage->is_shared) {
|
if (rximage->is_shared) {
|
||||||
XSync(context->dpy, False);
|
XSync(context->dpy, False);
|
||||||
@@ -182,6 +181,7 @@ RDestroyXImage(RContext *context, RXImage *rximage)
|
|||||||
XDestroyImage(rximage->image);
|
XDestroyImage(rximage->image);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
free(rximage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user