From 3286d72bb71168b1a4e4461589f76fa4036fac11 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Wed, 4 Jan 2006 20:19:37 +0000 Subject: [PATCH] cosmetic consistency git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8212 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/typemaps/ptrtypes.swg | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/SWIG/Lib/typemaps/ptrtypes.swg b/SWIG/Lib/typemaps/ptrtypes.swg index 6e9c6f06a..9a55d7ea3 100644 --- a/SWIG/Lib/typemaps/ptrtypes.swg +++ b/SWIG/Lib/typemaps/ptrtypes.swg @@ -53,9 +53,7 @@ int res = asptr_meth($input, &ptr); if (!SWIG_IsOK(res) || !ptr) { %variable_fail(SWIG_TypeError, "$type", "$name"); } $1 = *ptr; - if (SWIG_IsNewObj(res)) { - %delete(ptr); - } + if (SWIG_IsNewObj(res)) %delete(ptr); } %enddef