source: branches/work_320/ARInsideMain.cpp @ 679

Revision 679, 1.0 KB checked in by jls17, 5 years ago (diff)
  • fixed some memory leaks in case memory allocation fails in ARFieldList.cpp and ARSchemaList.cpp
  • small changes to the initialization of the crash handler
RevLine 
[295]1//Copyright (C) 2012 John Luthgers | jls17
[22]2//
3//This file is part of ARInside.
4//
5//    ARInside is free software: you can redistribute it and/or modify
6//    it under the terms of the GNU General Public License as published by
7//    the Free Software Foundation, version 2 of the License.
8//
9//    ARInside is distributed in the hope that it will be useful,
10//    but WITHOUT ANY WARRANTY; without even the implied warranty of
11//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12//    GNU General Public License for more details.
13//
14//    You should have received a copy of the GNU General Public License
[295]15//    along with ARInside. If not, see <http://www.gnu.org/licenses/>.
[1]16
[295]17#include "ARInsideMain.h"
[296]18#include "Main.h"
[666]19#include "CrashHandler.h"
[133]20
21int main(int argc, char* argv[])
[1]22{
[679]23        void *pCrashHandler =
[666]24#ifdef ARINSIDE_BREAKPAD_SUPPORT
[679]25                new CrashHandler();
26#else
27                NULL;
[666]28#endif
[296]29        CMain theMain;
[679]30        theMain.SetCrashHandler(pCrashHandler);
[296]31        return theMain.Run(argc, argv);
[666]32
[1]33}
Note: See TracBrowser for help on using the repository browser.