Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cbe6a53

Browse files
committed
Fixed double-dispose of splash() dialog
1 parent 2369a98 commit cbe6a53

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Mac/Modules/macosmodule.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
3030
#include <Windows.h>
3131
#include <Files.h>
3232
#include <LowMem.h>
33+
#include <Sound.h>
3334

3435
static PyObject *MacOS_Error; /* Exception MacOS.Error */
3536

@@ -563,6 +564,7 @@ MacOS_splash(PyObject *self, PyObject *args)
563564
if (!PyArg_ParseTuple(args, "|i", &resid))
564565
return NULL;
565566
olddialog = curdialog;
567+
curdialog = NULL;
566568

567569
if ( resid != -1 ) {
568570
curdialog = GetNewDialog(resid, NULL, (WindowPtr)-1);

0 commit comments

Comments
 (0)