From: Mikko Rasa Date: Tue, 3 Jan 2023 00:54:27 +0000 (+0200) Subject: Avoid double deletion of the module if a plugin fails to load X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=b7ecf9d6203492a43bf98e7c611b81c5594cbd00;p=builder.git Avoid double deletion of the module if a plugin fails to load The destructor of LoadedPlugin will delete it. --- diff --git a/source/lib/builder.cpp b/source/lib/builder.cpp index 48f3550..738361b 100644 --- a/source/lib/builder.cpp +++ b/source/lib/builder.cpp @@ -79,8 +79,6 @@ void Builder::load_plugins() { logger->log("plugins", "Failed to initialize plugin %s: %s", f, exc.what()); } - - delete plugin.module; } }