mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
core: report remaining shared objects when cleanup
This commit is contained in:
parent
ebb903a376
commit
9e978c9770
1 changed files with 8 additions and 1 deletions
|
|
@ -111,7 +111,14 @@ void pa_shared_cleanup(pa_core *c) {
|
|||
if (!c->shared)
|
||||
return;
|
||||
|
||||
pa_assert(pa_hashmap_isempty(c->shared));
|
||||
if (!pa_hashmap_isempty(c->shared)) {
|
||||
pa_strbuf *s = pa_strbuf_new();
|
||||
|
||||
pa_shared_dump(c, s);
|
||||
pa_log_debug(pa_strbuf_tostring(s));
|
||||
pa_strbuf_free(s);
|
||||
pa_assert(pa_hashmap_isempty(c->shared));
|
||||
}
|
||||
|
||||
pa_hashmap_free(c->shared, NULL, NULL);
|
||||
c->shared = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue