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

Fixed double-dispose of splash() dialog

üst 2369a98e
...@@ -30,6 +30,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ...@@ -30,6 +30,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <Windows.h> #include <Windows.h>
#include <Files.h> #include <Files.h>
#include <LowMem.h> #include <LowMem.h>
#include <Sound.h>
static PyObject *MacOS_Error; /* Exception MacOS.Error */ static PyObject *MacOS_Error; /* Exception MacOS.Error */
...@@ -563,6 +564,7 @@ MacOS_splash(PyObject *self, PyObject *args) ...@@ -563,6 +564,7 @@ MacOS_splash(PyObject *self, PyObject *args)
if (!PyArg_ParseTuple(args, "|i", &resid)) if (!PyArg_ParseTuple(args, "|i", &resid))
return NULL; return NULL;
olddialog = curdialog; olddialog = curdialog;
curdialog = NULL;
if ( resid != -1 ) { if ( resid != -1 ) {
curdialog = GetNewDialog(resid, NULL, (WindowPtr)-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