]> git.saurik.com Git - wxWidgets.git/commitdiff
check that we don't use a NULL pointer in XCopyRemote()
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 30 Mar 2007 15:59:11 +0000 (15:59 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 30 Mar 2007 15:59:11 +0000 (15:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/motif/dcclient.cpp

index f6cdfe5801a37df57f64be7715f39b6194bd01ad..1a3ec55e8d7a8eb266ad6b0f45fbdf965d18f46a 100644 (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);