[gnome-commander] Use g_strfreev() for freeing array of strings



commit 1446cdd7e3e03c3370c6f1f57069daf4a45e1197
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Mon Jun 7 19:40:11 2010 +0200

    Use g_strfreev() for freeing array of strings

 src/gnome-cmd-app.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-cmd-app.cc b/src/gnome-cmd-app.cc
index fafc244..a9b388a 100644
--- a/src/gnome-cmd-app.cc
+++ b/src/gnome-cmd-app.cc
@@ -213,7 +213,7 @@ void gnome_cmd_app_set_pattern_string (GnomeCmdApp *app, const gchar *pattern_st
     for (gint i=0; ents[i]; ++i)
         app->priv->pattern_list = g_list_append (app->priv->pattern_list, ents[i]);
 
-    g_free (ents);
+    g_strfreev (ents);
 }
 
 



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