debugutils: fix warning on enum properties printing

https://bugzilla.gnome.org/show_bug.cgi?id=766251
This commit is contained in:
Wonchul Lee 2016-05-11 12:16:09 +09:00 committed by Sebastian Dröge
parent 14f71d2e27
commit 58f964da96

View file

@ -150,8 +150,10 @@ debug_dump_get_object_params (GObject * object,
break;
}
}
if (tmp == NULL)
if (tmp == NULL) {
g_value_unset (&value);
continue;
}
} else if (G_VALUE_HOLDS_FLAGS (&value)) {
GFlagsClass *f_class = g_type_class_ref (G_VALUE_TYPE (&value));
GFlagsValue *vals = f_class->values;