diff options
author | Pauli Nieminen <ext-pauli.nieminen@nokia.com> | 2010-06-14 10:05:36 +0300 |
---|---|---|
committer | Pauli Nieminen <ext-pauli.nieminen@nokia.com> | 2010-07-13 11:26:13 +0300 |
commit | b953bf7b9775e5970776a21ae3f7919592289c92 (patch) | |
tree | 1f363766d1d56af0224e85b8d93d37c19a633e8b /src | |
parent | 6199f89992e2b6ba5f96833f4f4087b61ca61ac5 (diff) |
Fix memory leak in XIGetSelectedEvents
mask_in was leaking for every successfull XIGetSelectedEvents.
Signed-off-by: Pauli Nieminen <ext-pauli.nieminen@nokia.com>
Reviewed-by: Julien Cristau <jcristau@debian.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/XISelEv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/XISelEv.c b/src/XISelEv.c index bdc4fd1..3c1f018 100644 --- a/src/XISelEv.c +++ b/src/XISelEv.c @@ -161,6 +161,8 @@ XIGetSelectedEvents(Display* dpy, Window win, int *num_masks_return) *num_masks_return = reply.num_masks; + Xfree(mask_in); + return mask_out; error: |