aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/NXmiexpose.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/NXmiexpose.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/NXmiexpose.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/NXmiexpose.c b/nx-X11/programs/Xserver/hw/nxagent/NXmiexpose.c
index a51ae6fcc..48b565564 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/NXmiexpose.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/NXmiexpose.c
@@ -628,14 +628,17 @@ int what;
return;
screenContext[i] = CreateGC((DrawablePtr)pWin, (BITS32) 0,
(XID *)NULL, &status);
- if (!screenContext[i])
+ if (!screenContext[i]) {
free(prect);
return;
+ }
numGCs++;
if (!AddResource(FakeClientID(0), ResType,
- (void *)screenContext[i]))
+ (void *)screenContext[i]))
+ {
free(prect);
return;
+ }
}
pGC = screenContext[i];
newValues[SUBWINDOW].val = IncludeInferiors;