1
0
Fork 0

Reported by cppcheck: fix a memory leak

This commit is contained in:
Frederic Bouvier 2011-01-30 13:25:12 +01:00
parent 95a5326c4e
commit 687be04678

View file

@ -83,6 +83,7 @@ FGModelMgr::add_model (SGPropertyNode * node)
} catch (const sg_throwable& t) { } catch (const sg_throwable& t) {
SG_LOG(SG_GENERAL, SG_ALERT, "Error loading " << path << ":\n " SG_LOG(SG_GENERAL, SG_ALERT, "Error loading " << path << ":\n "
<< t.getFormattedMessage() << t.getOrigin()); << t.getFormattedMessage() << t.getOrigin());
delete instance;
return; return;
} }