Original commit message from CVS:
plug some leaks
+2005-08-25 Thomas Vander Stichele <thomas at apestaart dot org>
+
+ * gst/audioconvert/gstaudioconvert.c: (gst_audio_convert_dispose),
+ (audio_convert_get_unit_size):
+ plug some leaks
+
2005-08-25 Thomas Vander Stichele <thomas at apestaart dot org>
* check/Makefile.am:
g_free (this->srccaps.pos);
this->srccaps.pos = NULL;
}
+
+ gst_audio_convert_unset_matrix (this);
+
G_OBJECT_CLASS (parent_class)->dispose (obj);
}
memset (&ac_caps, 0, sizeof (ac_caps));
- if (!gst_audio_convert_parse_caps (caps, &ac_caps))
+ if (!gst_audio_convert_parse_caps (caps, &ac_caps)) {
+ g_free (ac_caps.pos);
return FALSE;
+ }
+ g_free (ac_caps.pos);
*size = ac_caps.width * ac_caps.channels / 8;
return TRUE;