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
Line 
1//Copyright (C) 2012 John Luthgers | jls17
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
15//    along with ARInside. If not, see <http://www.gnu.org/licenses/>.
16
17#include "ARInsideMain.h"
18#include "Main.h"
19#include "CrashHandler.h"
20
21int main(int argc, char* argv[])
22{
23        void *pCrashHandler =
24#ifdef ARINSIDE_BREAKPAD_SUPPORT
25                new CrashHandler();
26#else
27                NULL;
28#endif
29        CMain theMain;
30        theMain.SetCrashHandler(pCrashHandler);
31        return theMain.Run(argc, argv);
32
33}
Note: See TracBrowser for help on using the repository browser.