aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-06-20 23:14:09 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-06-22 11:30:54 +0200
commitc8520ac0aabb475d92ea6b60e3113f2999c04eb8 (patch)
treeb76b0c391d417d3e3b299cfbe24914d30ec56b7e /nx-X11/programs/Xserver
parent956caeb8af1f14a52879d39c98caeb1e13edd546 (diff)
downloadnx-libs-c8520ac0aabb475d92ea6b60e3113f2999c04eb8.tar.gz
nx-libs-c8520ac0aabb475d92ea6b60e3113f2999c04eb8.tar.bz2
nx-libs-c8520ac0aabb475d92ea6b60e3113f2999c04eb8.zip
mi/miexpose.c: add missing free()
Diffstat (limited to 'nx-X11/programs/Xserver')
-rw-r--r--nx-X11/programs/Xserver/mi/miexpose.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/mi/miexpose.c b/nx-X11/programs/Xserver/mi/miexpose.c
index 274a8d4ce..40272f962 100644
--- a/nx-X11/programs/Xserver/mi/miexpose.c
+++ b/nx-X11/programs/Xserver/mi/miexpose.c
@@ -757,7 +757,10 @@ int what;
if (screenContext[i] == (GCPtr)NULL)
{
if (!ResType && !(ResType = CreateNewResourceType(tossGC)))
+ {
+ free(prect);
return;
+ }
screenContext[i] = CreateGC((DrawablePtr)pWin, (BITS32) 0,
(XID *)NULL, &status);
if (!screenContext[i])