mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
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_native = g_slice_new0 (MetaIdleMonitorWatchNative);
|
||||||
watch = (MetaIdleMonitorWatch *) watch_native;
|
watch = (MetaIdleMonitorWatch *) watch_native;
|
||||||
|
|
||||||
watch = g_slice_new0 (MetaIdleMonitorWatch);
|
|
||||||
watch->monitor = monitor;
|
watch->monitor = monitor;
|
||||||
watch->id = get_next_watch_serial ();
|
watch->id = get_next_watch_serial ();
|
||||||
watch->callback = callback;
|
watch->callback = callback;
|
||||||
|
Loading…
Reference in New Issue
Block a user