From: Mikko Rasa Date: Tue, 29 Apr 2008 06:05:19 +0000 (+0000) Subject: Free stuff on exit X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=2fe5b8243b3a7e1c6251e83a55d29d175b8905e4;p=netvis.git Free stuff on exit --- diff --git a/source/netvis.cpp b/source/netvis.cpp index e49c28e..3a0f092 100644 --- a/source/netvis.cpp +++ b/source/netvis.cpp @@ -81,6 +81,8 @@ int NetVis::main() delete resolver; + delete font; + delete font_tex; delete glc; delete wnd; delete dpy; @@ -90,6 +92,14 @@ int NetVis::main() cout<<"tick: "<::iterator i=hosts.begin(); i!=hosts.end(); ++i) + delete i->second; + for(map::iterator i=disabled_hosts.begin(); i!=disabled_hosts.end(); ++i) + delete i->second; + for(list::iterator i=packets.begin(); i!=packets.end(); ++i) + delete *i; + return exit_code; }