mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:46:13 +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_mutex_unlock (&sink->client_lock);
|
||||||
g_clear_error (&err);
|
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;
|
return GST_FLOW_FLUSHING;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue