mirror of
https://github.com/cemu-project/idapython.git
synced 2024-11-27 19:44:18 +01:00
handle_python_error() was leaking an object
This commit is contained in:
parent
69e35391a5
commit
f4b1a7d87c
@ -169,6 +169,7 @@ static void handle_python_error(char *errbuf, size_t errbufsize)
|
||||
Py_XDECREF(ptype);
|
||||
Py_XDECREF(pvalue);
|
||||
Py_XDECREF(ptraceback);
|
||||
Py_DECREF(result);
|
||||
}
|
||||
else
|
||||
PyErr_Print();
|
||||
@ -369,7 +370,7 @@ bool idaapi IDAPython_Menu_Callback(void *ud)
|
||||
static bool parse_py_modname(
|
||||
const char *full_name,
|
||||
char *modname,
|
||||
char *attrname,
|
||||
char *attrname,
|
||||
size_t sz,
|
||||
const char *defmod = "idaapi")
|
||||
{
|
||||
@ -805,7 +806,7 @@ static void install_python_menus()
|
||||
menu_installed = true;
|
||||
}
|
||||
|
||||
enum script_run_when
|
||||
enum script_run_when
|
||||
{
|
||||
run_on_db_open = 0, // run script after opening database (default)
|
||||
run_on_ui_ready = 1, // run script when UI is ready
|
||||
|
Loading…
Reference in New Issue
Block a user