summaryrefslogtreecommitdiff
path: root/src/tests/lfe-filter-test.c
diff options
context:
space:
mode:
authorAhmed S. Darwish <darwish.07@gmail.com>2016-03-13 00:51:12 +0200
committerDavid Henningsson <david.henningsson@canonical.com>2016-04-02 05:36:52 +0200
commit9bda6e344a67a9df245bd679706c9a0291b30d08 (patch)
tree739c786caff8c3b38437f56d969f125b79a3ed2f /src/tests/lfe-filter-test.c
parent1f5e72264ea3ccc23aa34460874c8581909d0e89 (diff)
pulsecore: Reference count mempools
In future commits, server-wide SHMs will be replaced with per-client ones that will be dynamically created and freed according to clients connections open and close. Meanwhile, current PA design does not guarantee that the per-client mempool blocks are referenced only by client-specific objects. Thus reference count the pools and let each memblock inside the pool itself, or just attached to it, increment the pool's refcount upon allocation. This way, per-client mempools will only be freed when no further component in the system holds any references to its blocks. DiscussionLink: https://goo.gl/qesVMV Suggested-by: Tanu Kaskinen <tanuk@iki.fi> Suggested-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
Diffstat (limited to 'src/tests/lfe-filter-test.c')
-rw-r--r--src/tests/lfe-filter-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/lfe-filter-test.c b/src/tests/lfe-filter-test.c
index 389a2b95a..e64288d68 100644
--- a/src/tests/lfe-filter-test.c
+++ b/src/tests/lfe-filter-test.c
@@ -163,7 +163,7 @@ START_TEST (lfe_filter_test) {
pa_lfe_filter_free(lft.lf);
- pa_mempool_free(lft.pool);
+ pa_mempool_unref(lft.pool);
if (!ret)
pa_log_debug("lfe-filter-test: tests for both rewind to block boundary and rewind to middle position of a block passed!");