check that we don't use a NULL pointer in XCopyRemote()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2219,7 +2219,7 @@ install:
|
|||||||
XPutImage(dest_display, dest, destgc, destimage, 0, 0, destx, desty, w, h);
|
XPutImage(dest_display, dest, destgc, destimage, 0, 0, destx, desty, w, h);
|
||||||
XDestroyImage(destimage);
|
XDestroyImage(destimage);
|
||||||
|
|
||||||
if (more)
|
if (more && cache)
|
||||||
*cache = image;
|
*cache = image;
|
||||||
else
|
else
|
||||||
XDestroyImage(image);
|
XDestroyImage(image);
|
||||||
|
Reference in New Issue
Block a user