mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
fix reference-counting on forward-reference return values
This commit is contained in:
parent
826406eebc
commit
896860c8c2
@ -575,6 +575,7 @@ setup_properties(const InterrogateFunction &ifunc, InterfaceMaker *interface_mak
|
|||||||
|
|
||||||
// Should we manage a reference count?
|
// Should we manage a reference count?
|
||||||
CPPType *return_type = _return_type->get_new_type();
|
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);
|
CPPType *return_meat_type = TypeManager::unwrap_pointer(return_type);
|
||||||
|
|
||||||
if (manage_reference_counts &&
|
if (manage_reference_counts &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user