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:
parent
fe03e62800
commit
af4bfc044f
@ -2219,7 +2219,7 @@ install:
|
||||
XPutImage(dest_display, dest, destgc, destimage, 0, 0, destx, desty, w, h);
|
||||
XDestroyImage(destimage);
|
||||
|
||||
if (more)
|
||||
if (more && cache)
|
||||
*cache = image;
|
||||
else
|
||||
XDestroyImage(image);
|
||||
|
Loading…
Reference in New Issue
Block a user