Kaydet (Commit) 450ae9f3 authored tarafından Jack Jansen's avatar Jack Jansen

Don't free the MacOS_Splash() dialog twice...

üst 48c5527c
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment