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 /ext/libfame | |
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).
Diffstat (limited to 'ext/libfame')
-rw-r--r-- | ext/libfame/gstlibfame.c | 13 |
1 files changed, 7 insertions, 6 deletions
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); |