mpegtspacketizer: Fix leak

This commit is contained in:
Edward Hervey 2012-06-05 09:48:04 +02:00
parent 5f7ecaa0f1
commit 9e117b83fc

View file

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