plug some leaks

Original commit message from CVS:
plug some leaks
This commit is contained in:
Thomas Vander Stichele 2005-08-25 17:32:34 +00:00
parent 6dff9c2cbd
commit 43332aed85
2 changed files with 13 additions and 1 deletions

View file

@ -1,3 +1,9 @@
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> 2005-08-25 Thomas Vander Stichele <thomas at apestaart dot org>
* check/Makefile.am: * check/Makefile.am:

View file

@ -226,6 +226,9 @@ gst_audio_convert_dispose (GObject * obj)
g_free (this->srccaps.pos); g_free (this->srccaps.pos);
this->srccaps.pos = NULL; this->srccaps.pos = NULL;
} }
gst_audio_convert_unset_matrix (this);
G_OBJECT_CLASS (parent_class)->dispose (obj); G_OBJECT_CLASS (parent_class)->dispose (obj);
} }
@ -242,8 +245,11 @@ audio_convert_get_unit_size (GstBaseTransform * base, GstCaps * caps,
memset (&ac_caps, 0, sizeof (ac_caps)); 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; return FALSE;
}
g_free (ac_caps.pos);
*size = ac_caps.width * ac_caps.channels / 8; *size = ac_caps.width * ac_caps.channels / 8;
return TRUE; return TRUE;