From 1492de4391579b9cfb2dc1933225eb8179f456ef 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);