From b7ecf9d6203492a43bf98e7c611b81c5594cbd00 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 3 Jan 2023 02:54:27 +0200 Subject: [PATCH] Avoid double deletion of the module if a plugin fails to load The destructor of LoadedPlugin will delete it. --- source/lib/builder.cpp | 2 -- 1 file changed, 2 deletions(-) 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; } } -- 2.45.2