diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1998-02-20 15:59:59 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1998-02-20 15:59:59 (GMT) |
commit | cbe6a53d1ffe76702a2873429f2c57f9609a7f48 (patch) | |
tree | 18362d990bf96f104ccb59ccfc2acd104926c008 /Mac/Modules | |
parent | 2369a98eb90078c11762553b95aba243ccaf3b3d (diff) | |
download | cpython-cbe6a53d1ffe76702a2873429f2c57f9609a7f48.zip cpython-cbe6a53d1ffe76702a2873429f2c57f9609a7f48.tar.gz cpython-cbe6a53d1ffe76702a2873429f2c57f9609a7f48.tar.bz2 |
Fixed double-dispose of splash() dialog
Diffstat (limited to 'Mac/Modules')
-rw-r--r-- | Mac/Modules/macosmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ 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); |