[gtk+] Fix a small leak in GtkFileSelector



commit f07613bb121ee57717ea106b1d0bbba0a6a1242a
Author: Michael Chudobiak <mjc avtechpulse com>
Date:   Sat Apr 11 01:47:29 2009 -0400

    Fix a small leak in GtkFileSelector
---
 gtk/gtkfilesel.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/gtk/gtkfilesel.c b/gtk/gtkfilesel.c
index 318e67a..0aa9f17 100644
--- a/gtk/gtkfilesel.c
+++ b/gtk/gtkfilesel.c
@@ -3005,14 +3005,16 @@ open_new_dir (gchar       *dir_name,
   if (!sys_dir_name)
     {
       cmpl_errno = CMPL_ERRNO_DID_NOT_CONVERT;
+      g_free (sent);
       return NULL;
     }
-  
+
   directory = g_dir_open (sys_dir_name, 0, &error);
   if (!directory)
     {
       cmpl_errno = error->code; /* ??? */
       g_free (sys_dir_name);
+      g_free (sent);
       return NULL;
     }
 



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