]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/nplugin/src/npapp.cpp
fix for bug in wxEditableListBox in connection with new wxListCtrl
[wxWidgets.git] / utils / nplugin / src / npapp.cpp
index e9c43029c321bc812fb37b72099d9f37b5e26032..b9e28cc1592f7de8c0910f9613b6567d74f1d732 100644 (file)
@@ -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;