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:
Vadim Zeitlin 2007-03-30 15:59:11 +00:00
parent fe03e62800
commit af4bfc044f

View File

@ -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);