diff options
-rw-r--r-- | ChangeLog | 5 | ||||
m--------- | common | 0 | ||||
-rw-r--r-- | ext/libfame/gstlibfame.c | 13 |
3 files changed, 12 insertions, 6 deletions
@@ -1,3 +1,8 @@ +2005-06-30 Ronald S. Bultje <rbultje@ronald.bitfreak.net> + + * ext/libfame/gstlibfame.c: (gst_fameenc_class_init): + Memleak fix (#309005). + 2005-06-24 Thomas Vander Stichele <thomas at apestaart dot org> * ext/ogg/README: diff --git a/common b/common -Subproject d6e46b214fac0ecb46010ff522af2f7653e1c18 +Subproject 2826306411790bf8aa9298922aa59b126897431 diff --git a/ext/libfame/gstlibfame.c b/ext/libfame/gstlibfame.c index f33dfd19..83b40513 100644 --- a/ext/libfame/gstlibfame.c +++ b/ext/libfame/gstlibfame.c @@ -262,15 +262,16 @@ gst_fameenc_class_init (GstFameEncClass * klass) if (array->len > 0) { GType type; GParamSpec *pspec; + gchar *str1, *str2; - type = - g_enum_register_static (g_strdup_printf ("GstFameEnc_%s", - current_type), (GEnumValue *) array->data); + str1 = g_strdup_printf ("GstFameEnc_%s", current_type); + type = g_enum_register_static (str1, (GEnumValue *) array->data); + g_free (str1); - pspec = - g_param_spec_enum (current_type, current_type, - g_strdup_printf ("The FAME \"%s\" object", current_type), type, + str2 = g_strdup_printf ("The FAME \"%s\" object", current_type); + pspec = g_param_spec_enum (current_type, current_type, str2, type, default_index, G_PARAM_READWRITE); + g_free (str2); g_param_spec_set_qdata (pspec, fame_object_name, (gpointer) current_type); |