mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 13:10:08 +00:00
inspector: Fix a small memory leak
The property editor was leaking a few GValues.
This commit is contained in:
parent
b6cfe59460
commit
1a94e5fb0e
@ -626,6 +626,7 @@ unichar_changed (GObject *object, GParamSpec *pspec, gpointer data)
|
||||
g_value_init (&val, pspec->value_type);
|
||||
get_property_value (object, pspec, &val);
|
||||
new_val = (gunichar)g_value_get_uint (&val);
|
||||
g_value_unset (&val);
|
||||
|
||||
if (new_val != old_val)
|
||||
{
|
||||
@ -1527,6 +1528,7 @@ readonly_changed (GObject *object,
|
||||
|
||||
gtk_label_set_label (GTK_LABEL (data), value);
|
||||
|
||||
g_value_unset (&gvalue);
|
||||
g_free (value);
|
||||
g_free (type);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user