]> git.mxchange.org Git - simgear.git/commitdiff
Fix a leak / potential crash
authorJames Turner <zakalawe@mac.com>
Mon, 6 Jun 2016 10:36:47 +0000 (11:36 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 13 Aug 2016 08:21:16 +0000 (10:21 +0200)
simgear/package/Catalog.cxx

index e281946a0db860218c510fbfedb0d6a004d31f75..46f85e77b538b2f0dbd7adb2bfa1ea7102c35dd4 100644 (file)
@@ -124,7 +124,7 @@ protected:
             return;
         }
 
-        SGPropertyNode* props = new SGPropertyNode;
+        SGPropertyNode_ptr props = new SGPropertyNode;
 
         try {
             readProperties(m_buffer.data(), m_buffer.size(), props);