コード例 #1
0
ファイル: w32dc.cpp プロジェクト: kant/livecode
MCScreenDC::~MCScreenDC()
{
	MCNotifyFinalize();

	showtaskbar();
	while (opened)
		close(True);
	if (ncolors != 0)
	{
		uint2 i;
		for (i = 0 ; i < ncolors ; i++)
		{
			if (colornames[i] != NULL)
				delete colornames[i];
		}
		delete colors;
		delete colornames;
		delete allocs;
	}
	while (pendingevents != NULL)
	{
		MCEventnode *tptr =(MCEventnode *)pendingevents->remove(pendingevents);
		delete tptr;
	}
}
コード例 #2
0
ファイル: mbldc.cpp プロジェクト: bduck/livecode
MCScreenDC::~MCScreenDC(void)
{
	// Delete any lingering active touches (clear_touches does just the job)
	clear_touches();
	
	// Delete the main windows stack.
	delete m_main_windows;
	
	// MW-2013-06-18: [[ XPlatNotify ]] Finalize the notify module.
	MCNotifyFinalize();
}
コード例 #3
0
ファイル: osxdc.cpp プロジェクト: n9yty/livecode
MCScreenDC::~MCScreenDC()
{
    MCNotifyFinalize();

    if (opened)
        close(True);
    while (pendingevents != NULL)
    {
        MCEventnode *tptr =(MCEventnode *)pendingevents->remove(pendingevents);
        delete tptr;
    }
    if (bgw != NULL)
        DisposeGWorld(bgw);
}