From: Jack Jansen Date: Fri, 20 Feb 1998 15:59:59 +0000 (+0000) Subject: Fixed double-dispose of splash() dialog X-Git-Tag: v1.5.1~618 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cbe6a53d1ffe76702a2873429f2c57f9609a7f48;p=python Fixed double-dispose of splash() dialog --- diff --git a/Mac/Modules/macosmodule.c b/Mac/Modules/macosmodule.c index 6fc3cf4e70..a17300dec5 100644 --- a/Mac/Modules/macosmodule.c +++ b/Mac/Modules/macosmodule.c @@ -30,6 +30,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include #include #include +#include static PyObject *MacOS_Error; /* Exception MacOS.Error */ @@ -563,6 +564,7 @@ MacOS_splash(PyObject *self, PyObject *args) if (!PyArg_ParseTuple(args, "|i", &resid)) return NULL; olddialog = curdialog; + curdialog = NULL; if ( resid != -1 ) { curdialog = GetNewDialog(resid, NULL, (WindowPtr)-1);