Browse Source

Fix crash when loading plugin with duplicate slug

tags/v0.6.0
Andrew Belt 7 years ago
parent
commit
daf57e134e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/plugin.cpp

+ 1
- 1
src/plugin.cpp View File

@@ -103,7 +103,7 @@ static int loadPlugin(std::string path) {
// Reject plugin if slug already exists
for (Plugin *p : gPlugins) {
if (plugin->slug == p->slug) {
warn("Plugin \"%s\" is already loaded, not attempting to load it again");
warn("Plugin \"%s\" is already loaded, not attempting to load it again", p->slug.c_str());
// TODO
// Fix memory leak with `plugin` here
return -1;


Loading…
Cancel
Save