]> git.tdb.fi Git - builder.git/commitdiff
Avoid double deletion of the module if a plugin fails to load
authorMikko Rasa <tdb@tdb.fi>
Tue, 3 Jan 2023 00:54:27 +0000 (02:54 +0200)
committerMikko Rasa <tdb@tdb.fi>
Tue, 3 Jan 2023 00:54:27 +0000 (02:54 +0200)
The destructor of LoadedPlugin will delete it.

source/lib/builder.cpp

index 48f35500667edcf391f6153f64c584fef18604cc..738361bce2d3553db15844bc19b7e6e5a7353924 100644 (file)
@@ -79,8 +79,6 @@ void Builder::load_plugins()
                {
                        logger->log("plugins", "Failed to initialize plugin %s: %s", f, exc.what());
                }
-
-               delete plugin.module;
        }
 }