Use FreeAndNil across the board. Even if we are immediately assigning after, probably avoids accidental mistakes. Also free neglected owner tex on shutdown, and delete hog gears using the normal deletion procedure if for any reason they still exist (EndGame call?).
# -------------------------------------------------
# Project created by QtCreator 2010-11-27T22:18:20
# -------------------------------------------------
TARGET = drawMapTest
TEMPLATE = app
SOURCES += main.cpp \
mainwindow.cpp \
drawmapscene.cpp \
qaspectratiolayout.cpp \
drawmapwidget.cpp
HEADERS += mainwindow.h \
drawmapscene.h \
qaspectratiolayout.h \
drawmapwidget.h
FORMS += mainwindow.ui