Commit 604382bf authored by Andrew Feren's avatar Andrew Feren Committed by Sebastian Dröge

gst/gstobject.c: Unref the GEnumClass after usage again. Fixes bug #561501.

Original commit message from CVS:
Patch by: Andrew Feren <acferen at yahoo dot com>
* gst/gstobject.c: (gst_object_default_deep_notify):
Unref the GEnumClass after usage again. Fixes bug #561501.
parent 9184d9ee
2008-11-19 Sebastian Dröge <sebastian.droege@collabora.co.uk>
Patch by: Andrew Feren <acferen at yahoo dot com>
* gst/gstobject.c: (gst_object_default_deep_notify):
Unref the GEnumClass after usage again. Fixes bug #561501.
2008-11-19 Wim Taymans <wim.taymans@collabora.co.uk>
* gst/gstbin.c: (_gst_boolean_accumulator), (gst_bin_class_init),
......@@ -571,13 +571,13 @@ gst_object_default_deep_notify (GObject * object, GstObject * orig,
/* FIXME: handle flags */
if (G_IS_PARAM_SPEC_ENUM (pspec)) {
GEnumValue *enum_value;
GEnumClass *klass = G_ENUM_CLASS (g_type_class_ref (pspec->value_type));
enum_value =
g_enum_get_value (G_ENUM_CLASS (g_type_class_ref (pspec->value_type)),
g_value_get_enum (&value));
enum_value = g_enum_get_value (klass, g_value_get_enum (&value));
str = g_strdup_printf ("%s (%d)", enum_value->value_nick,
enum_value->value);
g_type_class_unref (klass);
} else {
str = g_strdup_value_contents (&value);
}
......
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