I'm teaching myself Objective-C and all the guides instruct you to deallocate an object once you are finished with it.
I'm using the Plausible Database wrapper for Sqlite and whenever I run the following code, the program hangs. If I remove the dealloc statement, it runs fine.
Can I safely do away with the dealloc?
I'm using the Plausible Database wrapper for Sqlite and whenever I run the following code, the program hangs. If I remove the dealloc statement, it runs fine.
Code:
PLSqliteDatabase *db;
@try {
db = [[PLSqliteDatabase alloc] initWithPath: @"testDB.sqlite"];
} @catch (NSException *e) {
} @finally {
[db close];
[db dealloc];
}
Can I safely do away with the dealloc?