mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -04:00
interrogate: Fix memory leak in __setstate__
This commit is contained in:
parent
1793c9a938
commit
3e1d4aa6b5
@ -3625,7 +3625,7 @@ write_function_for_name(ostream &out, Object *obj,
|
||||
out << " }\n"
|
||||
<< " " << cClassName << " *local_this = new " << cClassName << ";\n"
|
||||
<< " DTool_PyInit_Finalize(self, local_this, "
|
||||
<< "((Dtool_PyInstDef *)self)->_My_Type, false, false);\n"
|
||||
<< "((Dtool_PyInstDef *)self)->_My_Type, true, false);\n"
|
||||
<< " if (local_this == nullptr) {\n"
|
||||
<< " PyErr_NoMemory();\n";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user