wxPluginFrame *frame = FindFrame(instance);
if ( frame )
{
- frame->OnClose();
- delete frame;
+ frame->Close();
}
return NPERR_NO_ERROR;
}
}
*/
+// This can't work now because we don't have a global app until wxEntry is called.
+// We'll put the wxEntry call in npshell.cpp instead.
NPError wxPluginApp::NPP_Initialize(void)
{
static int init = FALSE;
void wxPluginApp::NPP_Shutdown(void)
{
- // Clean up wxWindows
+ // Clean up wxWidgets
CleanUp();
}