mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
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:
parent
771ffe5609
commit
c81ce6b152
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue