[gnome-commander] GnomeCmdMainWin: free unused memory



commit 54c70a78bd90cfea00fa2b640e03a6494df9a52e
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Tue Aug 23 20:44:46 2011 +0200

    GnomeCmdMainWin: free unused memory

 src/gnome-cmd-main-win.cc |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-cmd-main-win.cc b/src/gnome-cmd-main-win.cc
index db82f1a..9f31390 100644
--- a/src/gnome-cmd-main-win.cc
+++ b/src/gnome-cmd-main-win.cc
@@ -826,6 +826,8 @@ static void init (GnomeCmdMainWin *mw)
         mw->fs(RIGHT)->new_tab(dir, i->second.first, i->second.second, i->second.third, TRUE);
     }
 
+    gnome_cmd_data.tabs.clear();        //  free unused memory
+
     g_signal_connect (mw, "size-allocate", G_CALLBACK (on_size_allocate), mw);
     g_signal_connect (mw, "delete-event", G_CALLBACK (on_delete_event), mw);
     g_signal_connect (mw->priv->paned, "button-press-event", G_CALLBACK (on_slide_button_press), mw);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]