mpegtspacketizer: Fix leak
authorEdward Hervey <edward.hervey@collabora.co.uk>
Tue, 5 Jun 2012 07:48:04 +0000 (09:48 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Tue, 5 Jun 2012 08:54:26 +0000 (10:54 +0200)
gst/mpegtsdemux/mpegtspacketizer.c

index 37dacffbea747de9f7111ffd6f3763461b9a05c4..46f6f607d15b4c08fb1d38464c8da1e4df10430c 100644 (file)
@@ -2558,8 +2558,7 @@ mpegts_packetizer_push_section (MpegTSPacketizer2 * packetizer,
           "of the buffer", packet->pid);
       goto out;
     }
-    /* FIXME : We could actually avoid any copy altogether if it gets parsed straight away */
-    section->data = g_memdup (data, section->section_length);
+    section->data = data;
     section->table_id = table_id;
     section->complete = TRUE;
     res = TRUE;