monitor-manager: Remove persistent_timeout on dispose

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1233>
This commit is contained in:
Marco Trevisan (Treviño) 2020-05-01 16:39:47 +02:00 committed by Jonas Ådahl
parent 4fe7569567
commit b3c5ca12a5

View File

@ -1122,6 +1122,8 @@ meta_monitor_manager_dispose (GObject *object)
g_clear_object (&manager->display_config); g_clear_object (&manager->display_config);
g_clear_object (&manager->config_manager); g_clear_object (&manager->config_manager);
g_clear_handle_id (&manager->persistent_timeout_id, g_source_remove);
G_OBJECT_CLASS (meta_monitor_manager_parent_class)->dispose (object); G_OBJECT_CLASS (meta_monitor_manager_parent_class)->dispose (object);
} }