aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Drawable.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2017-11-18 23:33:53 +0100
committerUlrich Sibiller <uli42@gmx.de>2017-11-21 01:41:57 +0100
commit7e975e3ccff9aa809c1fec7b2642615f2a934c10 (patch)
tree87c4b5833476c339d20af4af5bc04e3d1daa7603 /nx-X11/programs/Xserver/hw/nxagent/Drawable.c
parent3b640a0f8de615e53dd6801ebd2aa0cf04f76c69 (diff)
downloadnx-libs-7e975e3ccff9aa809c1fec7b2642615f2a934c10.tar.gz
nx-libs-7e975e3ccff9aa809c1fec7b2642615f2a934c10.tar.bz2
nx-libs-7e975e3ccff9aa809c1fec7b2642615f2a934c10.zip
simply free() calls
free() can handle NULL so there's no need to check this ourselves
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Drawable.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Drawable.c28
1 files changed, 8 insertions, 20 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Drawable.c b/nx-X11/programs/Xserver/hw/nxagent/Drawable.c
index 917f460ba..c3d27073e 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Drawable.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Drawable.c
@@ -264,7 +264,7 @@ int nxagentSynchronizeDrawableData(DrawablePtr pDrawable, unsigned int breakMask
success = 0;
- goto nxagentSynchronizeDrawableDataFree;
+ goto nxagentSynchronizeDrawableDataEnd;
}
ValidateGC(pDrawable, pGC);
@@ -282,7 +282,7 @@ int nxagentSynchronizeDrawableData(DrawablePtr pDrawable, unsigned int breakMask
success = 1;
- goto nxagentSynchronizeDrawableDataFree;
+ goto nxagentSynchronizeDrawableDataEnd;
}
else if (nxagentReconnectTrap == 1)
{
@@ -323,7 +323,7 @@ int nxagentSynchronizeDrawableData(DrawablePtr pDrawable, unsigned int breakMask
success = 0;
- goto nxagentSynchronizeDrawableDataFree;
+ goto nxagentSynchronizeDrawableDataEnd;
}
ValidateGC(pDrawable, pGC);
@@ -336,7 +336,7 @@ int nxagentSynchronizeDrawableData(DrawablePtr pDrawable, unsigned int breakMask
success = 1;
- goto nxagentSynchronizeDrawableDataFree;
+ goto nxagentSynchronizeDrawableDataEnd;
}
else
{
@@ -349,7 +349,7 @@ int nxagentSynchronizeDrawableData(DrawablePtr pDrawable, unsigned int breakMask
success = 1;
- goto nxagentSynchronizeDrawableDataFree;
+ goto nxagentSynchronizeDrawableDataEnd;
}
}
}
@@ -363,14 +363,8 @@ int nxagentSynchronizeDrawableData(DrawablePtr pDrawable, unsigned int breakMask
success = nxagentSynchronizeRegion(pDrawable, NullRegion, breakMask, owner);
-nxagentSynchronizeDrawableDataFree:
-
- if (data != NULL)
- {
- free(data);
- }
-
nxagentSynchronizeDrawableDataEnd:
+ free(data);
return success;
}
@@ -866,10 +860,7 @@ int nxagentSynchronizeRegion(DrawablePtr pDrawable, RegionPtr pRegion, unsigned
#endif
}
- if (cmpData != NULL)
- {
- free(cmpData);
- }
+ free(cmpData);
}
}
else
@@ -1066,10 +1057,7 @@ nxagentSynchronizeRegionFree:
nxagentFreeRegion(pDrawable, clipRegion);
}
- if (data != NULL)
- {
- free(data);
- }
+ free(data);
RegionUninit(&exposeRegion);