From dcd83b736556bac2531b627a4337c186f03d3219 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Tue, 1 Apr 2014 16:00:49 -0400 Subject: [PATCH] idle-monitor-native: Remove another copy/paste error Don't overwrite the watch with a new malloc'd variable. --- src/backends/native/meta-idle-monitor-native.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/backends/native/meta-idle-monitor-native.c b/src/backends/native/meta-idle-monitor-native.c index 8eb357615..13d8d516f 100644 --- a/src/backends/native/meta-idle-monitor-native.c +++ b/src/backends/native/meta-idle-monitor-native.c @@ -125,7 +125,6 @@ meta_idle_monitor_native_make_watch (MetaIdleMonitor *monitor, watch_native = g_slice_new0 (MetaIdleMonitorWatchNative); watch = (MetaIdleMonitorWatch *) watch_native; - watch = g_slice_new0 (MetaIdleMonitorWatch); watch->monitor = monitor; watch->id = get_next_watch_serial (); watch->callback = callback;