mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
backends: Unref variants obtained from g_variant_iter_get_next_value()
Those are being leaked. https://bugzilla.gnome.org/show_bug.cgi?id=789553
This commit is contained in:
parent
07745b3082
commit
89f5ca3301
@ -1834,6 +1834,8 @@ create_logical_monitor_config_from_variant (MetaMonitorManager *manager
|
||||
monitor_config =
|
||||
create_monitor_config_from_variant (manager,
|
||||
monitor_config_variant, error);
|
||||
g_variant_unref (monitor_config_variant);
|
||||
|
||||
if (!monitor_config)
|
||||
goto err;
|
||||
|
||||
@ -1984,6 +1986,8 @@ meta_monitor_manager_handle_apply_monitors_config (MetaDBusDisplayConfig *skelet
|
||||
logical_monitor_config_variant,
|
||||
layout_mode,
|
||||
&error);
|
||||
g_variant_unref (logical_monitor_config_variant);
|
||||
|
||||
if (!logical_monitor_config)
|
||||
{
|
||||
g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR,
|
||||
|
Loading…
Reference in New Issue
Block a user