Free memory allocated by XIQueryPointer()

https://bugzilla.gnome.org/show_bug.cgi?id=695135
This commit is contained in:
Pavel Vasin
2013-03-04 18:57:01 +04:00
committed by Florian Müllner
parent 4d437e32e0
commit 98b0a37442
4 changed files with 9 additions and 0 deletions

View File

@@ -52,6 +52,7 @@
#include <locale.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
static char* get_screen_name (MetaDisplay *display,
int number);
@@ -1985,6 +1986,7 @@ meta_screen_get_mouse_window (MetaScreen *screen,
&mods,
&group);
meta_error_trap_pop (screen->display);
free (buttons.mask);
window = meta_stack_get_default_focus_window_at_point (screen->stack,
screen->active_workspace,
@@ -2236,6 +2238,7 @@ meta_screen_get_current_monitor (MetaScreen *screen)
&buttons,
&mods,
&group);
free (buttons.mask);
pointer_position.x = root_x_return;
pointer_position.y = root_y_return;