Fixed double-dispose of splash() dialog

This commit is contained in:
Jack Jansen 1998-02-20 15:59:59 +00:00
parent 2369a98eb9
commit cbe6a53d1f
1 changed files with 2 additions and 0 deletions

View 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);