summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWalter Harms <wharms@bfs.de>2019-11-09 22:14:36 +0100
committerWalter Harms <wharms@bfs.de>2019-11-09 22:14:36 +0100
commit8fe25ef4a99c38abe31113d5cfa0b85c7cd5c2de (patch)
tree2dc19624e267f1351f4f46e3d7cf3a00675f9450 /src
parent17b77304b23965c1c8ac6a260636f37c23f60ff6 (diff)
no need to check arguments for XtFree()
Signed-off-by: Walter Harms <wharms@bfs.de>
Diffstat (limited to 'src')
-rw-r--r--src/PassivGrab.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/PassivGrab.c b/src/PassivGrab.c
index bece0d9..6457a08 100644
--- a/src/PassivGrab.c
+++ b/src/PassivGrab.c
@@ -194,10 +194,8 @@ static void FreeGrab(
{
if (pGrab->hasExt) {
XtServerGrabExtPtr ext = GRABEXT(pGrab);
- if (ext->pModifiersMask)
- XtFree((char *)ext->pModifiersMask);
- if (ext->pKeyButMask)
- XtFree((char *)ext->pKeyButMask);
+ XtFree((char *)ext->pModifiersMask);
+ XtFree((char *)ext->pKeyButMask);
}
XtFree((char *)pGrab);
}