mirror of
https://github.com/brl/mutter.git
synced 2024-12-28 05:42:14 +00:00
monitor-manager: Stop leaking experimental HDR setting
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3432>
This commit is contained in:
parent
9f89421ef5
commit
be3394646f
@ -116,7 +116,7 @@ typedef struct _MetaMonitorManagerPrivate
|
|||||||
|
|
||||||
gboolean has_builtin_panel;
|
gboolean has_builtin_panel;
|
||||||
gboolean night_light_supported;
|
gboolean night_light_supported;
|
||||||
const char *experimental_hdr;
|
char *experimental_hdr;
|
||||||
|
|
||||||
guint reload_monitor_manager_id;
|
guint reload_monitor_manager_id;
|
||||||
guint switch_config_handle_id;
|
guint switch_config_handle_id;
|
||||||
@ -1388,6 +1388,7 @@ meta_monitor_manager_finalize (GObject *object)
|
|||||||
MetaMonitorManagerPrivate *priv =
|
MetaMonitorManagerPrivate *priv =
|
||||||
meta_monitor_manager_get_instance_private (manager);
|
meta_monitor_manager_get_instance_private (manager);
|
||||||
|
|
||||||
|
g_clear_pointer (&priv->experimental_hdr, g_free);
|
||||||
g_list_free_full (manager->logical_monitors, g_object_unref);
|
g_list_free_full (manager->logical_monitors, g_object_unref);
|
||||||
|
|
||||||
g_warn_if_fail (!priv->virtual_monitors);
|
g_warn_if_fail (!priv->virtual_monitors);
|
||||||
@ -1438,6 +1439,7 @@ meta_monitor_manager_set_property (GObject *object,
|
|||||||
manager->backend = g_value_get_object (value);
|
manager->backend = g_value_get_object (value);
|
||||||
break;
|
break;
|
||||||
case PROP_EXPERIMENTAL_HDR:
|
case PROP_EXPERIMENTAL_HDR:
|
||||||
|
g_clear_pointer (&priv->experimental_hdr, g_free);
|
||||||
priv->experimental_hdr = g_value_dup_string (value);
|
priv->experimental_hdr = g_value_dup_string (value);
|
||||||
break;
|
break;
|
||||||
case PROP_PANEL_ORIENTATION_MANAGED:
|
case PROP_PANEL_ORIENTATION_MANAGED:
|
||||||
|
Loading…
Reference in New Issue
Block a user