Fixed a memory leak in a message list method

This commit is contained in:
mronge@mronges-macbook-pro-15.local
2007-07-14 15:06:08 -07:00
parent b95b5df939
commit 787fd8c80c
+5 -2
View File
@@ -308,8 +308,11 @@
[messages addObject:msgObject];
[msgObject release];
}
if ( env_list != NULL )
carray_free(env_list->msg_tab); //I am only freeing the message array because the messages themselves are in use
if ( env_list != NULL ) {
//I am only freeing the message array because the messages themselves are in use
carray_free(env_list->msg_tab);
free(env_list);
}
return messages;
}