]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/nplugin/src/npapp.cpp
added new text event macros description
[wxWidgets.git] / utils / nplugin / src / npapp.cpp
index b5aff25ab18adc7c31ed6e8721e79e55fa41fbf6..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;
 }