From cbe6a53d1ffe76702a2873429f2c57f9609a7f48 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Fri, 20 Feb 1998 15:59:59 +0000 Subject: [PATCH] Fixed double-dispose of splash() dialog --- Mac/Modules/macosmodule.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Mac/Modules/macosmodule.c b/Mac/Modules/macosmodule.c index 6fc3cf4e703..a17300dec52 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);