[0.10] gst-plugins-base: discoverer: fix leaks caused by some base class dtors not being called

Tim Müller tpm at kemper.freedesktop.org
Thu Jan 12 09:48:35 PST 2012


Module: gst-plugins-base
Branch: 0.10
Commit: c88b0412d6ebbb3c88a86888457c1040a0527b3e
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=c88b0412d6ebbb3c88a86888457c1040a0527b3e

Author: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
Date:   Wed Jan 11 12:52:17 2012 +0000

discoverer: fix leaks caused by some base class dtors not being called

---

 gst-libs/gst/pbutils/gstdiscoverer-types.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/gst-libs/gst/pbutils/gstdiscoverer-types.c b/gst-libs/gst/pbutils/gstdiscoverer-types.c
index 1f658c9..0cb9a1b 100644
--- a/gst-libs/gst/pbutils/gstdiscoverer-types.c
+++ b/gst-libs/gst/pbutils/gstdiscoverer-types.c
@@ -210,6 +210,7 @@ static void
 gst_discoverer_audio_info_finalize (GstDiscovererAudioInfo * info)
 {
   g_free (info->language);
+  gst_discoverer_stream_info_finalize ((GstDiscovererStreamInfo *) info);
 }
 
 static void
@@ -263,6 +264,7 @@ static void
 gst_discoverer_subtitle_info_finalize (GstDiscovererSubtitleInfo * info)
 {
   g_free (info->language);
+  gst_discoverer_stream_info_finalize ((GstDiscovererStreamInfo *) info);
 }
 
 static void



More information about the gstreamer-commits mailing list