Commit aebf04f6 authored by Mohammed Sadiq's avatar Mohammed Sadiq Committed by Bastien Nocera
Browse files

region: Fix memory leak

The returned result of g_variant_get_strv() has to be freed
when no-longer needed

https://bugzilla.gnome.org/show_bug.cgi?id=782047
parent a09a5d7e
...@@ -1509,6 +1509,7 @@ on_localed_properties_changed (GDBusProxy *proxy, ...@@ -1509,6 +1509,7 @@ on_localed_properties_changed (GDBusProxy *proxy,
g_free (priv->system_region); g_free (priv->system_region);
priv->system_region = g_strdup (time); priv->system_region = g_strdup (time);
g_variant_unref (v); g_variant_unref (v);
g_free (strv);
update_language_label (self); update_language_label (self);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment