diff options
author | Reinhard Tartler <siretart@tauware.de> | 2011-10-10 17:59:00 +0200 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2011-10-10 17:59:00 +0200 |
commit | 39b738a67a14dde67b2a811d56ac84934fcef52d (patch) | |
tree | 514ab67cc6147ba0853b5908ddf78e4115ffef1d /nx-X11/programs/Xserver/hw/nxagent/Render.c | |
parent | e6db7e93608570765b3b6133ebb60d746c81aeeb (diff) | |
download | nx-libs-39b738a67a14dde67b2a811d56ac84934fcef52d.tar.gz nx-libs-39b738a67a14dde67b2a811d56ac84934fcef52d.tar.bz2 nx-libs-39b738a67a14dde67b2a811d56ac84934fcef52d.zip |
Imported nxagent-3.5.0-2.tar.gznxagent/3.5.0-2
Summary: Imported nxagent-3.5.0-2.tar.gz
Keywords:
Imported nxagent-3.5.0-2.tar.gz
into Git repository
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Render.c')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Render.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Render.c b/nx-X11/programs/Xserver/hw/nxagent/Render.c index 4f0f76474..6c74c147f 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Render.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Render.c @@ -1,6 +1,6 @@ /**************************************************************************/ /* */ -/* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */ +/* Copyright (c) 2001, 2011 NoMachine, http://www.nomachine.com/. */ /* */ /* NXAGENT, NX protocol compression and NX extensions to this software */ /* are copyright of NoMachine. Redistribution and use of the present */ @@ -584,16 +584,16 @@ XRenderPictFormat *nxagentMatchingFormats(PictFormatPtr pFormat) void nxagentDestroyPicture(PicturePtr pPicture) { + if (pPicture == NULL || nxagentPicturePriv(pPicture) -> picture == 0) + { + return; + } + #ifdef TEST fprintf(stderr, "nxagentDestroyPicture: Going to destroy picture at [%p].\n", (void *) pPicture); #endif - if (pPicture == NULL) - { - return; - } - XRenderFreePicture(nxagentDisplay, nxagentPicturePriv(pPicture) -> picture); |