From 977c7f0d907795f9622d8e8ce5078e6b55823122 Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Fri, 9 May 2008 07:41:58 +0000 Subject: [PATCH] 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. --- ChangeLog | 5 +++++ common | 2 +- gst/rtpmanager/rtpsource.c | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 74440f2afa..1fc45c1854 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-05-09 Peter Kjellerstedt + + * gst/rtpmanager/rtpsource.c: (rtp_source_finalize): + Make sure to unref the caps used by RTPSource to prevent a memory leak. + 2008-05-08 Tim-Philipp Müller Based on patch by: Clive Wright diff --git a/common b/common index ba3dd2882b..dbf8f3aece 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit ba3dd2882b1611f8115f9664e3b85e1fd956b53d +Subproject commit dbf8f3aeceb6e57de097951a670cd853b4886ad8 diff --git a/gst/rtpmanager/rtpsource.c b/gst/rtpmanager/rtpsource.c index 36def4618e..4c351a1a6e 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); }