Index: src/OFPlugin.m ================================================================== --- src/OFPlugin.m +++ src/OFPlugin.m @@ -74,10 +74,12 @@ return [super init]; } - (void)dealloc { - dlclose(handle); + of_plugin_handle_t h = handle; [super dealloc]; + + dlclose(h); } @end