@@ -74,10 +74,12 @@ return [super init]; } - (void)dealloc { - dlclose(handle); + of_plugin_handle_t h = handle; [super dealloc]; + + dlclose(h); } @end