summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2024-12-08 04:53:13 +0100
committerChristian Soffke <christian.soffke@gmail.com>2024-12-08 12:22:00 -0500
commit05a77178ffd27732ea5c49c3fcff87f8d67ee238 (patch)
treeb5ea2c66b8b626bc34f8496f6b6ad94aff835166
parent33cbefb310b8a195047edb502921467ac1e5386e (diff)
downloadrockbox-05a77178ff.tar.gz
rockbox-05a77178ff.zip
plugins: fix plugin handle reset after plugin load failed
e519356 prevents loading further plugins otherwise Change-Id: I97dc14aa5d0e0471d264f006593f62da3fd4394a
-rw-r--r--apps/plugin.c2
1 files changed, 2 insertions, 0 deletions
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;
}