X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5de76427c87d8289f5c343cef16e9375056fc49f..d5f005cc9385455ceebdf2063aa7f421f70315d1:/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; }