From 450ae9f352d0ce77726b5b95ff31a80b0d75a457 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Tue, 13 May 1997 15:41:48 +0000 Subject: Don't free the MacOS_Splash() dialog twice... --- Mac/Modules/macosmodule.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Mac/Modules/macosmodule.c b/Mac/Modules/macosmodule.c index 3cf11a0..bafcab8 100644 --- a/Mac/Modules/macosmodule.c +++ b/Mac/Modules/macosmodule.c @@ -502,15 +502,17 @@ static PyObject * MacOS_splash(PyObject *self, PyObject *args) { int resid = -1; - static DialogPtr curdialog; + static DialogPtr curdialog = NULL; WindowRef theWindow; CGrafPtr thePort; short xpos, ypos, width, height, swidth, sheight; if (!PyArg_ParseTuple(args, "|i", &resid)) return NULL; - if (curdialog) + if (curdialog) { DisposeDialog(curdialog); + curdialog = NULL; + } if ( resid != -1 ) { curdialog = GetNewDialog(resid, NULL, (WindowPtr)-1); -- cgit v0.12