From a6d4aca990b1d0a32214d89c7bf8e7c9d17dcfd8 Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 6 Jun 2016 11:36:47 +0100 Subject: [PATCH] Fix a leak / potential crash --- simgear/package/Catalog.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5