multiudpsink: Fix memory leak

Unmap all GstMemory of the current buffer when flushing.

https://bugzilla.gnome.org/show_bug.cgi?id=710110
This commit is contained in:
Ognyan Tonchev 2013-10-14 16:23:25 +02:00 committed by Sebastian Dröge
parent 771ffe5609
commit c81ce6b152

View file

@ -638,6 +638,12 @@ flushing:
g_mutex_unlock (&sink->client_lock);
g_clear_error (&err);
/* unmap all memory */
for (i = 0; i < n_mem; i++) {
gst_memory_unmap (map[i].memory, &map[i]);
gst_memory_unref (map[i].memory);
}
return GST_FLOW_FLUSHING;
}
}