From 29ad1895e3df69a893bf7fcf02eb4b7d9f735208 Mon Sep 17 00:00:00 2001 From: Jesper Jepsen Date: Tue, 8 Oct 2013 16:45:36 +0200 Subject: [PATCH] Fix for memory leakage when typed tables are created in a group. Dependency: Pull request #209 in core library. --- src/tightdb/objc/group_objc.mm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/tightdb/objc/group_objc.mm b/src/tightdb/objc/group_objc.mm index 6045d1a2b4..4ce2568cb0 100644 --- a/src/tightdb/objc/group_objc.mm +++ b/src/tightdb/objc/group_objc.mm @@ -178,9 +178,7 @@ -(id)getTable:(NSString *)name withClass:(__unsafe_unretained Class)classObj err if (TIGHTDB_UNLIKELY(!table)) return nil; bool was_created; TIGHTDB_EXCEPTION_ERRHANDLER( - tightdb::TableRef r = tightdb::LangBindHelper::get_table_ptr(_group, ObjcStringAccessor(name), - was_created)->get_table_ref(); - [table setTable:move(r)]; + [table setTable:_group->get_table(ObjcStringAccessor(name), was_created)]; , @"com.tightdb.group", nil); [table setParent:self]; [table setReadOnly:_readOnly];