diff --git a/apps/plugin.c b/apps/plugin.c index 5a9cd0b6c7..2c4b7ea6fd 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -913,6 +913,7 @@ int plugin_load(const char* plugin, const void* parameter) ) { lc_close(current_plugin_handle); + current_plugin_handle = NULL; splash(HZ*2, ID2P(LANG_PLUGIN_WRONG_MODEL)); return -1; } @@ -921,6 +922,7 @@ int plugin_load(const char* plugin, const void* parameter) p_hdr->api_size > sizeof(struct plugin_api)) { lc_close(current_plugin_handle); + current_plugin_handle = NULL; splash(HZ*2, ID2P(LANG_PLUGIN_WRONG_VERSION)); return -1; }