diff options
author | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2005-06-30 10:15:32 +0000 |
---|---|---|
committer | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2005-06-30 10:15:32 +0000 |
commit | 437409486c9f79d4858bd2ed7da209dc2149dd42 (patch) | |
tree | 546204d2604644d1f5e4663024480e2c42ba4d38 | |
parent | 9f5c226182bd2c787f2ac3a5632fc3808aaa2ffc (diff) | |
download | gst-plugins-bad-437409486c9f79d4858bd2ed7da209dc2149dd42.tar.gz gst-plugins-bad-437409486c9f79d4858bd2ed7da209dc2149dd42.tar.bz2 gst-plugins-bad-437409486c9f79d4858bd2ed7da209dc2149dd42.zip |
ext/libfame/gstlibfame.c: Memleak fix (#309005).
Original commit message from CVS:
* ext/libfame/gstlibfame.c: (gst_fameenc_class_init):
Memleak fix (#309005).
-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); |