diff options
author | Peter Kjellerstedt <pkj@axis.com> | 2008-05-09 07:41:58 +0000 |
---|---|---|
committer | Peter Kjellerstedt <pkj@axis.com> | 2008-05-09 07:41:58 +0000 |
commit | 977c7f0d907795f9622d8e8ce5078e6b55823122 (patch) | |
tree | 1408c4dd8dabc7a4440cb25abbbad22b0fccf586 | |
parent | 5d89e2e0a4a28c9478113a243f0862f3da24e892 (diff) | |
download | gst-plugins-bad-977c7f0d907795f9622d8e8ce5078e6b55823122.tar.gz gst-plugins-bad-977c7f0d907795f9622d8e8ce5078e6b55823122.tar.bz2 gst-plugins-bad-977c7f0d907795f9622d8e8ce5078e6b55823122.zip |
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.
-rw-r--r-- | ChangeLog | 5 | ||||
m--------- | common | 0 | ||||
-rw-r--r-- | gst/rtpmanager/rtpsource.c | 2 |
3 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2008-05-09 Peter Kjellerstedt <pkj@axis.com> + + * 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 <tim.muller at collabora co uk> Based on patch by: Clive Wright <clive_wright ntlworld com> diff --git a/common b/common -Subproject ba3dd2882b1611f8115f9664e3b85e1fd956b53 +Subproject dbf8f3aeceb6e57de097951a670cd853b4886ad 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); } |