diff options
Diffstat (limited to 'src/pulsecore/core-scache.c')
-rw-r--r-- | src/pulsecore/core-scache.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/pulsecore/core-scache.c b/src/pulsecore/core-scache.c index 73f65d2c8..64bc4b3d0 100644 --- a/src/pulsecore/core-scache.c +++ b/src/pulsecore/core-scache.c @@ -282,12 +282,9 @@ int pa_scache_remove_item(pa_core *c, const char *name) { } void pa_scache_free_all(pa_core *c) { - pa_scache_entry *e; - pa_assert(c); - while ((e = pa_idxset_steal_first(c->scache, NULL))) - free_entry(e); + pa_idxset_remove_all(c->scache, (pa_free_cb_t) free_entry); if (c->scache_auto_unload_event) { c->mainloop->time_free(c->scache_auto_unload_event); |