[gnome-commander] Fixed problem #598278 (memory leak)



commit 91cb33197e77a91049d5401fb9c374b0e9da09ec
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Sat Oct 17 20:04:49 2009 +0200

    Fixed problem #598278 (memory leak)

 NEWS                           |    1 +
 doc/C/gnome-commander.xml      |    3 +++
 src/gnome-cmd-dir-indicator.cc |    1 +
 3 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/NEWS b/NEWS
index 579cadb..98bb02d 100644
--- a/NEWS
+++ b/NEWS
@@ -24,6 +24,7 @@ Bug fixes:
  * Fixed problem #597144 (missing call to pclose)
  * Fixed problem #597233 (validating of doc translations)
  * Fixed problem #597890 (wrong arguments passed to meld)
+ * Fixed problem #598278 (memory leak)
 
 
 ===================================
diff --git a/doc/C/gnome-commander.xml b/doc/C/gnome-commander.xml
index cf4d940..01abb83 100644
--- a/doc/C/gnome-commander.xml
+++ b/doc/C/gnome-commander.xml
@@ -6035,6 +6035,9 @@
                         <listitem>
                             <para>Fixed problem #597890 (wrong arguments passed to meld)</para>
                         </listitem>
+                        <listitem>
+                            <para>Fixed problem #598278 (memory leak)</para>
+                        </listitem>
                     </itemizedlist>
                 </para>
             </entry>
diff --git a/src/gnome-cmd-dir-indicator.cc b/src/gnome-cmd-dir-indicator.cc
index 7eedf6c..72cbbae 100644
--- a/src/gnome-cmd-dir-indicator.cc
+++ b/src/gnome-cmd-dir-indicator.cc
@@ -106,6 +106,7 @@ static gboolean on_dir_indicator_clicked (GnomeCmdDirIndicator *indicator, GdkEv
             }
 
         // pointer is after directory name - just return
+        g_free (chTo);
         return TRUE;
     }
 



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