python.cpp: Remove menu items when unloading the plugin

This commit is contained in:
gergely.erdelyi 2008-06-15 17:33:58 +00:00
parent e2f6ba10dc
commit c026c32dc7

View File

@ -377,13 +377,10 @@ bool IDAPython_Init(void)
void IDAPython_Term(void) void IDAPython_Term(void)
{ {
/* Remove the menu items before termination */ /* Remove the menu items before termination */
#if 0
// FIXME: This segfaults the Linux version. The non-existent items might cause this?
del_menu_item("File/Load file/Python file..."); del_menu_item("File/Load file/Python file...");
del_menu_item("File/Python file..."); del_menu_item("File/Python file...");
del_menu_item("File/Python command..."); del_menu_item("File/Python command...");
del_menu_item("View/Open subviews/Python Scripts"); del_menu_item("View/Open subviews/Python Scripts");
#endif
/* Shut the interpreter down */ /* Shut the interpreter down */
Py_Finalize(); Py_Finalize();