X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2Fmodelmgr.cxx;h=181435ef1c76665603052b8a1039baa3ccd0f8f4;hb=687be046789e2f509ccf93155456c47f3f463e0c;hp=600086d29e9d77ece1819bc319f6e8f6fac1fa87;hpb=a6db6d89ff41a619569e6433409e8bf62ff98499;p=flightgear.git diff --git a/src/Model/modelmgr.cxx b/src/Model/modelmgr.cxx index 600086d29..181435ef1 100644 --- a/src/Model/modelmgr.cxx +++ b/src/Model/modelmgr.cxx @@ -16,6 +16,7 @@ #include #include #include +#include #include @@ -82,6 +83,7 @@ FGModelMgr::add_model (SGPropertyNode * node) } catch (const sg_throwable& t) { SG_LOG(SG_GENERAL, SG_ALERT, "Error loading " << path << ":\n " << t.getFormattedMessage() << t.getOrigin()); + delete instance; return; }