1 From 10b3d38560ec53d980d13240559e6758c1113e21 Mon Sep 17 00:00:00 2001
2 From: Havard Graff <havard.graff@gmail.com>
3 Date: Thu, 21 Mar 2013 12:46:11 +0000
4 Subject: fs-rtp-discover-codecs: plug memoryleak
6 use g_list_delete_link to free the list as well
8 (limited to 'gst/fsrtpconference')
10 diff --git a/gst/fsrtpconference/fs-rtp-discover-codecs.c b/gst/fsrtpconference/fs-rtp-discover-codecs.c
11 index df316a4..c663225 100644
12 --- a/gst/fsrtpconference/fs-rtp-discover-codecs.c
13 +++ b/gst/fsrtpconference/fs-rtp-discover-codecs.c
14 @@ -536,7 +536,7 @@ remove_duplicates (GList *list)
15 if (gst_caps_is_equal (codec_cap1->rtp_caps, codec_cap2->rtp_caps))
17 codec_cap_free (codec_cap2);
18 - walk1 = g_list_remove_link (walk1, walk2);
19 + walk1 = g_list_delete_link (walk1, walk2);