From 2fe5b8243b3a7e1c6251e83a55d29d175b8905e4 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 29 Apr 2008 06:05:19 +0000 Subject: [PATCH] Free stuff on exit --- source/netvis.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) 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; } -- 2.45.2