X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bbf1f0e5cffb8c01696eb26e254857a61f017d70..6dc34ebbd8f787eb42018df5b5fb938c1c7390aa:/utils/nplugin/src/npapp.cpp diff --git a/utils/nplugin/src/npapp.cpp b/utils/nplugin/src/npapp.cpp index e9c43029c3..b9e28cc159 100644 --- a/utils/nplugin/src/npapp.cpp +++ b/utils/nplugin/src/npapp.cpp @@ -103,8 +103,7 @@ NPError wxPluginApp::NPP_Destroy(NPP instance, NPSavedData** save) wxPluginFrame *frame = FindFrame(instance); if ( frame ) { - frame->OnClose(); - delete frame; + frame->Close(); } return NPERR_NO_ERROR; } @@ -121,6 +120,8 @@ jref wxPluginApp::NPP_GetJavaClass(void) } */ +// 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;