Free memory allocated by XIQueryPointer()
https://bugzilla.gnome.org/show_bug.cgi?id=695135
This commit is contained in:
parent
4d437e32e0
commit
98b0a37442
@ -71,6 +71,7 @@
|
|||||||
#include <X11/extensions/Xcomposite.h>
|
#include <X11/extensions/Xcomposite.h>
|
||||||
#include <X11/extensions/Xdamage.h>
|
#include <X11/extensions/Xdamage.h>
|
||||||
#include <X11/extensions/Xfixes.h>
|
#include <X11/extensions/Xfixes.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
@ -1674,6 +1675,7 @@ window_focus_on_pointer_rest_callback (gpointer data) {
|
|||||||
&root_x, &root_y, &x, &y,
|
&root_x, &root_y, &x, &y,
|
||||||
&buttons, &mods, &group);
|
&buttons, &mods, &group);
|
||||||
meta_error_trap_pop (display);
|
meta_error_trap_pop (display);
|
||||||
|
free (buttons.mask);
|
||||||
|
|
||||||
if (root_x != focus_data->pointer_x ||
|
if (root_x != focus_data->pointer_x ||
|
||||||
root_y != focus_data->pointer_y)
|
root_y != focus_data->pointer_y)
|
||||||
|
@ -1544,6 +1544,7 @@ primary_modifier_still_pressed (MetaDisplay *display,
|
|||||||
&root_x, &root_y,
|
&root_x, &root_y,
|
||||||
&x, &y,
|
&x, &y,
|
||||||
&buttons, &mods, &group);
|
&buttons, &mods, &group);
|
||||||
|
free (buttons.mask);
|
||||||
|
|
||||||
meta_topic (META_DEBUG_KEYBINDINGS,
|
meta_topic (META_DEBUG_KEYBINDINGS,
|
||||||
"Primary modifier 0x%x full grab mask 0x%x current state 0x%x\n",
|
"Primary modifier 0x%x full grab mask 0x%x current state 0x%x\n",
|
||||||
|
@ -52,6 +52,7 @@
|
|||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
static char* get_screen_name (MetaDisplay *display,
|
static char* get_screen_name (MetaDisplay *display,
|
||||||
int number);
|
int number);
|
||||||
@ -1985,6 +1986,7 @@ meta_screen_get_mouse_window (MetaScreen *screen,
|
|||||||
&mods,
|
&mods,
|
||||||
&group);
|
&group);
|
||||||
meta_error_trap_pop (screen->display);
|
meta_error_trap_pop (screen->display);
|
||||||
|
free (buttons.mask);
|
||||||
|
|
||||||
window = meta_stack_get_default_focus_window_at_point (screen->stack,
|
window = meta_stack_get_default_focus_window_at_point (screen->stack,
|
||||||
screen->active_workspace,
|
screen->active_workspace,
|
||||||
@ -2236,6 +2238,7 @@ meta_screen_get_current_monitor (MetaScreen *screen)
|
|||||||
&buttons,
|
&buttons,
|
||||||
&mods,
|
&mods,
|
||||||
&group);
|
&group);
|
||||||
|
free (buttons.mask);
|
||||||
|
|
||||||
pointer_position.x = root_x_return;
|
pointer_position.x = root_x_return;
|
||||||
pointer_position.y = root_y_return;
|
pointer_position.y = root_y_return;
|
||||||
|
@ -48,6 +48,7 @@
|
|||||||
|
|
||||||
#include <X11/Xatom.h>
|
#include <X11/Xatom.h>
|
||||||
#include <X11/Xlibint.h> /* For display->resource_mask */
|
#include <X11/Xlibint.h> /* For display->resource_mask */
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
@ -6959,6 +6960,8 @@ meta_window_client_message (MetaWindow *window,
|
|||||||
button = 3;
|
button = 3;
|
||||||
else
|
else
|
||||||
button = 0;
|
button = 0;
|
||||||
|
|
||||||
|
free (buttons.mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (button != 0)
|
if (button != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user