ObjFW  Check-in [9b88ee6978]

Overview
Comment:OFPlugin: Don't close the handle before calling [super dealloc].

If we close the handle before calling [super dealloc], the plugin class
does not exist anymore. Instead, cache the handle, call [super dealloc]
and then close the handle.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 9b88ee6978de84658665779722235ce9b5fb76bd7e0ac772bb206460079f05a2
User & Date: js on 2011-02-27 14:40:15
Other Links: manifest | tags
Context
2011-03-07
13:43
Throw an exception when trying to deallocate a locked mutex. check-in: f5515b0a1f user: js tags: trunk
2011-02-27
14:40
OFPlugin: Don't close the handle before calling [super dealloc]. check-in: 9b88ee6978 user: js tags: trunk
02:11
Don't call an OFTLSKey destructor if it is NULL. check-in: 1fe847a754 user: js tags: trunk
Changes

Modified src/OFPlugin.m from [ff6017ec5d] to [69b3d14f45].

72
73
74
75
76
77
78
79
80
81
82


83
	}

	return [super init];
}

- (void)dealloc
{
	dlclose(handle);

	[super dealloc];
}


@end







|


|
>
>

72
73
74
75
76
77
78
79
80
81
82
83
84
85
	}

	return [super init];
}

- (void)dealloc
{
	of_plugin_handle_t h = handle;

	[super dealloc];

	dlclose(h);
}
@end