From af4bfc044ff8029d21161e274fc52ec556e2a07e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 30 Mar 2007 15:59:11 +0000 Subject: [PATCH] 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 --- src/motif/dcclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/motif/dcclient.cpp b/src/motif/dcclient.cpp index f6cdfe5801..1a3ec55e8d 100644 --- a/src/motif/dcclient.cpp +++ b/src/motif/dcclient.cpp @@ -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); -- 2.45.2