]> granicus.if.org Git - python/commitdiff
Fixed double-dispose of splash() dialog
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 20 Feb 1998 15:59:59 +0000 (15:59 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 20 Feb 1998 15:59:59 +0000 (15:59 +0000)
Mac/Modules/macosmodule.c

index 6fc3cf4e7034138140f1483f16f99366803c0ce5..a17300dec5208dcc3b889924d88f24b9a9f2f51f 100644 (file)
@@ -30,6 +30,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 #include <Windows.h>
 #include <Files.h>
 #include <LowMem.h>
+#include <Sound.h>
 
 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);