From cd500b0213d3b76c0ade403717a3197ea313f3cf Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Mon, 8 Jul 2019 07:55:23 +0000 Subject: [PATCH] Fix: Fixed memory leak with filters in objecthandlers --- src/objecthandler.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/objecthandler.c b/src/objecthandler.c index 515e9ac..bee50a2 100644 --- a/src/objecthandler.c +++ b/src/objecthandler.c @@ -31,6 +31,9 @@ static void __free(igloo_ro_t self) igloo_objecthandler_t *handler = igloo_RO_TO_TYPE(self, igloo_objecthandler_t); igloo_thread_rwlock_wlock(&(handler->rwlock)); + igloo_ro_unref(handler->filter_a); + igloo_ro_unref(handler->filter_b); + igloo_ro_unref(handler->filter_list); igloo_thread_rwlock_unlock(&(handler->rwlock)); igloo_thread_rwlock_destroy(&(handler->rwlock));