Attempt to encourage better pointer deletion habits with the introduction
authorTametomo <irarice@gmail.com>
Sat, 19 Dec 2009 20:29:24 +0000 (13:29 -0700)
committerTametomo <irarice@gmail.com>
Sat, 19 Dec 2009 20:29:24 +0000 (13:29 -0700)
commit1937675e3dbddb32493b9b1e28b6b689ac31df6e
treee2a006648a2b0df87f2b8525fc4ff5dc45128999
parentad69657033fcaeaec05dacc7de0772f62284dc17
Attempt to encourage better pointer deletion habits with the introduction
of the destroy() template. Whenever possible, developers working on this
code should attempt to use the destroy() template over the delete command,
in order to help aid in discovering, preventing, and stopping pointer
leaks/bad accesses.

Also some small and miscellaneous cleanups.

Signed-off-by: Tametomo <irarice@gmail.com>
114 files changed:
aethyra.cbp
src/CMakeLists.txt
src/Makefile.am
src/bindings/curl/downloadwrapper.h
src/bindings/guichan/dialogs/confirmdialog.cpp
src/bindings/guichan/dialogs/confirmdialog.h
src/bindings/guichan/dialogs/okdialog.cpp
src/bindings/guichan/dialogs/okdialog.h
src/bindings/guichan/dialogs/setupdialog.cpp
src/bindings/guichan/dialogs/tabs/setup_colors.cpp
src/bindings/guichan/dialogs/tabs/setup_gui.cpp
src/bindings/guichan/dialogs/tabs/setup_input.cpp
src/bindings/guichan/gui.cpp
src/bindings/guichan/inputmanager.cpp
src/bindings/guichan/layout.cpp
src/bindings/guichan/text.cpp
src/bindings/guichan/textmanager.cpp
src/bindings/guichan/truetypefont.cpp
src/bindings/guichan/widgets/beingbox.cpp
src/bindings/guichan/widgets/button.cpp
src/bindings/guichan/widgets/checkbox.cpp
src/bindings/guichan/widgets/container.cpp
src/bindings/guichan/widgets/container.h
src/bindings/guichan/widgets/desktop.cpp
src/bindings/guichan/widgets/dropdown.cpp
src/bindings/guichan/widgets/listbox.cpp
src/bindings/guichan/widgets/mappedlistbox.cpp
src/bindings/guichan/widgets/popup.cpp
src/bindings/guichan/widgets/popup.h
src/bindings/guichan/widgets/progressbar.cpp
src/bindings/guichan/widgets/radiobutton.cpp
src/bindings/guichan/widgets/resizegrip.cpp
src/bindings/guichan/widgets/scrollarea.cpp
src/bindings/guichan/widgets/shortcutcontainer.cpp
src/bindings/guichan/widgets/shortcutwindow.cpp
src/bindings/guichan/widgets/slider.cpp
src/bindings/guichan/widgets/speechbubble.cpp
src/bindings/guichan/widgets/speechbubble.h
src/bindings/guichan/widgets/tab.cpp
src/bindings/guichan/widgets/tabbedarea.cpp
src/bindings/guichan/widgets/table.cpp
src/bindings/guichan/widgets/textbox.cpp
src/bindings/guichan/widgets/textfield.cpp
src/bindings/guichan/widgets/tooltip.cpp
src/bindings/guichan/widgets/tooltip.h
src/bindings/guichan/widgets/window.cpp
src/bindings/guichan/widgets/window.h
src/bindings/guichan/widgets/windowcontainer.cpp [deleted file]
src/bindings/guichan/widgets/windowcontainer.h [deleted file]
src/bindings/update/downloadupdates.h
src/core/configuration.h
src/core/image/dye.cpp
src/core/image/image.cpp
src/core/image/imageloader.cpp
src/core/image/particle/animationparticle.cpp
src/core/image/particle/particlecontainer.cpp
src/core/image/particle/rotationalparticle.cpp
src/core/image/simpleanimation.cpp
src/core/map/map.cpp
src/core/map/mapreader.cpp
src/core/map/sprite/being.cpp
src/core/map/sprite/flooritem.cpp
src/core/map/sprite/localplayer.cpp
src/core/map/sprite/monster.cpp
src/core/map/sprite/npc.cpp
src/core/map/sprite/player.cpp
src/core/resourcemanager.cpp
src/core/utils/dtor.h
src/eathena/beingmanager.cpp
src/eathena/db/colordb.cpp
src/eathena/db/emotedb.cpp
src/eathena/db/itemdb.cpp
src/eathena/db/npcdb.cpp
src/eathena/flooritemmanager.cpp
src/eathena/game.cpp
src/eathena/gui/buy.cpp
src/eathena/gui/charselect.cpp
src/eathena/gui/charselect.h
src/eathena/gui/chat.cpp
src/eathena/gui/equipmentwindow.cpp
src/eathena/gui/itemamount.cpp
src/eathena/gui/itempopup.h
src/eathena/gui/login.cpp
src/eathena/gui/popupmenu.h
src/eathena/gui/register.cpp
src/eathena/gui/sell.cpp
src/eathena/gui/slotselection.cpp
src/eathena/gui/status.cpp
src/eathena/gui/storagewindow.cpp
src/eathena/gui/tabs/setup_players.cpp
src/eathena/gui/updatewindow.cpp
src/eathena/gui/updatewindow.h
src/eathena/gui/viewport.cpp
src/eathena/gui/viewport.h
src/eathena/handlers/itemlinkhandler.cpp
src/eathena/maploader.cpp
src/eathena/models/playertablemodel.cpp
src/eathena/models/shoplistmodel.cpp
src/eathena/net/charserverhandler.cpp
src/eathena/net/loginhandler.cpp
src/eathena/net/partyhandler.cpp
src/eathena/net/tradehandler.cpp
src/eathena/party.cpp
src/eathena/playerrelations.cpp
src/eathena/structs/inventory.cpp
src/eathena/structs/item.h
src/eathena/structs/shopitem.cpp
src/eathena/structs/shopitem.h
src/eathena/widgets/emotecontainer.cpp
src/eathena/widgets/emoteshortcutcontainer.cpp
src/eathena/widgets/itemcontainer.cpp
src/eathena/widgets/itemshortcutcontainer.cpp
src/engine.cpp
src/main.cpp