Fix bug #180 - Crash after signal SIGHUP.

This commit is contained in:
Jan Vidar Krey
2012-01-19 02:58:20 +01:00
parent a9b5c6db38
commit 8607b40278
3 changed files with 32 additions and 7 deletions

View File

@@ -78,6 +78,7 @@ void plugin_close(struct uhub_plugin* plugin)
LOG_PLUGIN("plugin_close: \"%s\"", plugin->filename);
plugin_callback_data_destroy(internals->callback_data);
hub_free(internals);
plugin->internals = NULL;
#ifdef HAVE_DLOPEN
dlclose(plugin->handle);