From 775021effa1c8973c5da5166fbc7d0c64bc49658 Mon Sep 17 00:00:00 2001 From: theraven Date: Mon, 4 Oct 2010 17:49:44 +0000 Subject: [PATCH] Don't leak dtables. --- sync.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sync.m b/sync.m index 43aebf7..27796f1 100644 --- a/sync.m +++ b/sync.m @@ -102,6 +102,10 @@ static void deallocLockClass(id obj, SEL _cmd) // Free the lock mutex_t *lock = object_getIndexedIvars(lockClass); DESTROY_LOCK(lock); + + // FIXME: Low memory profile. + SparseArrayDestroy(lockClass->dtable); + // Free the class free(lockClass); }