From b1ef03968a6d488c9ec88b70dad8fcf3301f958c Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Fri, 9 May 2008 07:41:58 +0000 Subject: gst/rtpmanager/rtpsource.c: Make sure to unref the caps used by RTPSource to prevent a memory leak. Original commit message from CVS: * gst/rtpmanager/rtpsource.c: (rtp_source_finalize): Make sure to unref the caps used by RTPSource to prevent a memory leak. --- gst/rtpmanager/rtpsource.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/rtpmanager/rtpsource.c b/gst/rtpmanager/rtpsource.c index 36def461..4c351a1a 100644 --- a/gst/rtpmanager/rtpsource.c +++ b/gst/rtpmanager/rtpsource.c @@ -197,6 +197,8 @@ rtp_source_finalize (GObject * object) g_free (src->bye_reason); + gst_caps_replace (&src->caps, NULL); + G_OBJECT_CLASS (rtp_source_parent_class)->finalize (object); } -- cgit