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.
This commit is contained in:
Peter Kjellerstedt 2008-05-09 07:41:58 +00:00
parent 5d89e2e0a4
commit 977c7f0d90
3 changed files with 8 additions and 1 deletions

View file

@ -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> 2008-05-08 Tim-Philipp Müller <tim.muller at collabora co uk>
Based on patch by: Clive Wright <clive_wright ntlworld com> Based on patch by: Clive Wright <clive_wright ntlworld com>

2
common

@ -1 +1 @@
Subproject commit ba3dd2882b1611f8115f9664e3b85e1fd956b53d Subproject commit dbf8f3aeceb6e57de097951a670cd853b4886ad8

View file

@ -197,6 +197,8 @@ rtp_source_finalize (GObject * object)
g_free (src->bye_reason); g_free (src->bye_reason);
gst_caps_replace (&src->caps, NULL);
G_OBJECT_CLASS (rtp_source_parent_class)->finalize (object); G_OBJECT_CLASS (rtp_source_parent_class)->finalize (object);
} }