summaryrefslogtreecommitdiff
path: root/capplets
diff options
context:
space:
mode:
authorRoy Zhang <[email protected]>2015-11-04 01:13:39 +0800
committerWolfgang Ulbrich <[email protected]>2015-11-07 21:49:50 +0100
commitfa57391891309545aebc94fae4d79f6fae683659 (patch)
treeb251859f28f13e8a5f31df2a9687e97410948fdb /capplets
parentd97e84af2968231632cad2c85390d93a3bc5f4b3 (diff)
downloadmate-control-center-fa57391891309545aebc94fae4d79f6fae683659.tar.bz2
mate-control-center-fa57391891309545aebc94fae4d79f6fae683659.tar.xz
Fix dangling pointer errors
Diffstat (limited to 'capplets')
-rw-r--r--capplets/mouse/mate-mouse-properties.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/capplets/mouse/mate-mouse-properties.c b/capplets/mouse/mate-mouse-properties.c
index 2896ca18..8e638509 100644
--- a/capplets/mouse/mate-mouse-properties.c
+++ b/capplets/mouse/mate-mouse-properties.c
@@ -136,10 +136,14 @@ event_box_button_press_event (GtkWidget *widget,
double_click_time = g_settings_get_int (mouse_settings, DOUBLE_CLICK_KEY);
- if (test_maybe_timeout_id != 0)
+ if (test_maybe_timeout_id != 0) {
g_source_remove (test_maybe_timeout_id);
- if (test_on_timeout_id != 0)
+ test_maybe_timeout_id = 0;
+ }
+ if (test_on_timeout_id != 0) {
g_source_remove (test_on_timeout_id);
+ test_on_timeout_id = 0;
+ }
switch (double_click_state) {
case DOUBLE_CLICK_TEST_OFF: