X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bbf1f0e5cffb8c01696eb26e254857a61f017d70..3216dbf5dccab8ed6dc0245b7e5c998738ef51d7:/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;