webrtcbin: Fix memory leak
authorEdward Hervey <edward@centricular.com>
Thu, 21 Nov 2019 15:24:38 +0000 (16:24 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Thu, 21 Nov 2019 15:25:21 +0000 (16:25 +0100)
The structure is not used after this block

CID: 1455481

ext/webrtc/gstwebrtcbin.c

index c7928f6..eca3a7c 100644 (file)
@@ -3390,6 +3390,8 @@ _set_rtx_ptmap_from_stream (GstWebRTCBin * webrtc, TransportStream * stream)
       g_object_set (stream->rtxreceive, "payload-type-map", pt_map, NULL);
     if (stream->rtxsend)
       g_object_set (stream->rtxsend, "payload-type-map", pt_map, NULL);
+
+    gst_structure_free (pt_map);
   }
 }