Fixed double-dispose of splash() dialog
diff --git a/Mac/Modules/macosmodule.c b/Mac/Modules/macosmodule.c
index 6fc3cf4..a17300d 100644
--- a/Mac/Modules/macosmodule.c
+++ b/Mac/Modules/macosmodule.c
@@ -30,6 +30,7 @@
 #include <Windows.h>
 #include <Files.h>
 #include <LowMem.h>
+#include <Sound.h>
 
 static PyObject *MacOS_Error; /* Exception MacOS.Error */
 
@@ -563,6 +564,7 @@
 	if (!PyArg_ParseTuple(args, "|i", &resid))
 		return NULL;
 	olddialog = curdialog;
+	curdialog = NULL;
 		
 	if ( resid != -1 ) {
 		curdialog = GetNewDialog(resid, NULL, (WindowPtr)-1);