[gedit] Plug tiny leak
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Plug tiny leak
- Date: Thu, 11 Mar 2010 23:37:11 +0000 (UTC)
commit 0a2abc6450462539e0714f592e62b2d95e4a6ca4
Author: Paolo Borelli <pborelli gnome org>
Date: Fri Mar 12 00:36:08 2010 +0100
Plug tiny leak
gedit/gedit-encodings-combo-box.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gedit/gedit-encodings-combo-box.c b/gedit/gedit-encodings-combo-box.c
index e60bc12..eca30d7 100644
--- a/gedit/gedit-encodings-combo-box.c
+++ b/gedit/gedit-encodings-combo-box.c
@@ -235,13 +235,13 @@ static gboolean
separator_func (GtkTreeModel *model, GtkTreeIter *iter, gpointer data)
{
gchar *str;
+ gboolean ret;
gtk_tree_model_get (model, iter, NAME_COLUMN, &str, -1);
+ ret = (str == NULL || *str == '\0');
+ g_free (str);
- if (str != NULL && *str != '\0')
- return FALSE;
-
- return TRUE;
+ return ret;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]