diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2017-11-18 23:33:53 +0100 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2017-11-21 01:41:57 +0100 |
commit | 7e975e3ccff9aa809c1fec7b2642615f2a934c10 (patch) | |
tree | 87c4b5833476c339d20af4af5bc04e3d1daa7603 /nx-X11/programs/Xserver/hw/nxagent/GC.c | |
parent | 3b640a0f8de615e53dd6801ebd2aa0cf04f76c69 (diff) | |
download | nx-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/GC.c')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/GC.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/GC.c b/nx-X11/programs/Xserver/hw/nxagent/GC.c index abe66602a..b6bff4cf2 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/GC.c +++ b/nx-X11/programs/Xserver/hw/nxagent/GC.c @@ -924,10 +924,7 @@ static void nxagentRestoreGCRec(struct nxagentGCRec *t) (void*)t, (void*)t -> gc); #endif - if (nxagentGC(t -> pGC)) - { - free(nxagentGC(t -> pGC)); - } + free(nxagentGC(t -> pGC)); nxagentGC(t -> pGC) = t -> gc; |