From 896860c8c2883a54777acd5bf9517cced4f112c4 Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 4 Jul 2007 00:33:49 +0000 Subject: [PATCH] fix reference-counting on forward-reference return values --- dtool/src/interrogate/functionRemap.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/dtool/src/interrogate/functionRemap.cxx b/dtool/src/interrogate/functionRemap.cxx index c6a1b7552c..4469b38806 100644 --- a/dtool/src/interrogate/functionRemap.cxx +++ b/dtool/src/interrogate/functionRemap.cxx @@ -575,6 +575,7 @@ setup_properties(const InterrogateFunction &ifunc, InterfaceMaker *interface_mak // Should we manage a reference count? CPPType *return_type = _return_type->get_new_type(); + return_type = TypeManager::resolve_type(return_type, _cppscope); CPPType *return_meat_type = TypeManager::unwrap_pointer(return_type); if (manage_reference_counts &&