]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/nplugin/src/npapp.cpp
helpers and typemaps for new GraphicsContext methods
[wxWidgets.git] / utils / nplugin / src / npapp.cpp
index b5aff25ab18adc7c31ed6e8721e79e55fa41fbf6..a2499e1cf8b3658c011d5ed949300524c7e46330 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;
 }
@@ -241,7 +240,7 @@ NPError      wxPluginApp::NPP_SetWindow(NPP instance, NPWindow* window)
 
 void      wxPluginApp::NPP_Shutdown(void)
 {
-    // Clean up wxWindows
+    // Clean up wxWidgets
     CleanUp();
 }