Fixed deleting of CObjectManager

* fix in CApplication destructor
 * re-enabled unit tests
dev-ui
Piotr Dziwinski 2013-05-11 19:04:43 +02:00
parent 40954038ab
commit cc8ed2979b
2 changed files with 4 additions and 1 deletions

View File

@ -170,6 +170,9 @@ CApplication::~CApplication()
delete m_private;
m_private = nullptr;
delete m_objMan;
m_objMan = nullptr;
delete m_eventQueue;
m_eventQueue = nullptr;

View File

@ -228,7 +228,7 @@ ${LIBSNDFILE_LIBRARY}
add_executable(colobot_ut ${COLOBOT_SOURCES} ${UT_SOURCES} ${OPENAL_SOURCES})
target_link_libraries(colobot_ut ${LIBS})
#add_test(colobot_ut ./colobot_ut)
add_test(colobot_ut ./colobot_ut)
# TODO: change the unit cases to independent automated tests to be included in colobot_ut
add_subdirectory(common)