Index: src_plugins/dialogs/dlg_plugins.c =================================================================== --- src_plugins/dialogs/dlg_plugins.c (revision 33059) +++ src_plugins/dialogs/dlg_plugins.c (revision 33060) @@ -94,6 +94,11 @@ return; } + if (p->references > 1) { + rnd_message(RND_MSG_ERROR, "Can not unload '%s' while other active plugins still depend on it\n", p->name); + return; + } + pup_unload(&rnd_pup, p, NULL); /* rebuild the whole tree since we may have unloaded more than one plugins */