From: James Turner Date: Mon, 6 Jun 2016 10:36:47 +0000 (+0100) Subject: Fix a leak / potential crash X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a6d4aca990b1d0a32214d89c7bf8e7c9d17dcfd8;p=simgear.git Fix a leak / potential crash --- diff --git a/simgear/package/Catalog.cxx b/simgear/package/Catalog.cxx index e281946a..46f85e77 100644 --- a/simgear/package/Catalog.cxx +++ b/simgear/package/Catalog.cxx @@ -124,7 +124,7 @@ protected: return; } - SGPropertyNode* props = new SGPropertyNode; + SGPropertyNode_ptr props = new SGPropertyNode; try { readProperties(m_buffer.data(), m_buffer.size(), props);