idle-monitor-native: Remove another copy/paste error
Don't overwrite the watch with a new malloc'd variable.
This commit is contained in:
parent
617b00dfbd
commit
dcd83b7365
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user