Index: src/OFList.m ================================================================== --- src/OFList.m +++ src/OFList.m @@ -79,12 +79,10 @@ firstListObject = o; count++; mutations++; - [obj retain]; - return o; } - (of_list_object_t*)prependObject: (id)obj { @@ -103,12 +101,10 @@ lastListObject = o; count++; mutations++; - [obj retain]; - return o; } - (of_list_object_t*)insertObject: (id)obj beforeListObject: (of_list_object_t*)listobj @@ -129,12 +125,10 @@ firstListObject = o; count++; mutations++; - [obj retain]; - return o; } - (of_list_object_t*)insertObject: (id)obj afterListObject: (of_list_object_t*)listobj @@ -155,12 +149,10 @@ lastListObject = o; count++; mutations++; - [obj retain]; - return o; } - (void)removeListObject: (of_list_object_t*)listobj { @@ -257,12 +249,10 @@ if (prev != NULL) prev->next = o; new->count++; - [o->object retain]; - prev = o; } } @catch (id e) { [new release]; @throw e;