X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5de76427c87d8289f5c343cef16e9375056fc49f..d9f39e09e82e99c422619f4e3df536d0a9e87987:/utils/nplugin/src/npapp.cpp diff --git a/utils/nplugin/src/npapp.cpp b/utils/nplugin/src/npapp.cpp index b5aff25ab1..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; }