summaryrefslogtreecommitdiff
path: root/src/PassivGrab.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/PassivGrab.c')
-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);
}