summaryrefslogtreecommitdiff
path: root/gtk/gtkentrycompletion.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2007-03-09 21:57:37 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2007-03-09 21:57:37 +0000
commit82ce59cd0fd65f4d3b13dc4c305fc6d8ec44a12c (patch)
tree59d060f22217bda52a711dbada1b7c771ddca617 /gtk/gtkentrycompletion.c
parenta1e455446281f6a6a1a4eac14cd064cd9cfa93a7 (diff)
downloadgtk+-82ce59cd0fd65f4d3b13dc4c305fc6d8ec44a12c.tar.gz
Remove unnecessary NULL checks before g_free(). (#369666, Morten Welinder,
2007-03-09 Matthias Clasen <mclasen@redhat.com> * Everywhere: Remove unnecessary NULL checks before g_free(). (#369666, Morten Welinder, Djihed Afifi) * configure.in: Check for ftw.h svn path=/trunk/; revision=17444
Diffstat (limited to 'gtk/gtkentrycompletion.c')
-rw-r--r--gtk/gtkentrycompletion.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c
index ba1a644c1b..d4c51b4f49 100644
--- a/gtk/gtkentrycompletion.c
+++ b/gtk/gtkentrycompletion.c
@@ -573,8 +573,7 @@ gtk_entry_completion_finalize (GObject *object)
if (priv->action_view)
g_object_unref (priv->action_view);
- if (priv->case_normalized_key)
- g_free (priv->case_normalized_key);
+ g_free (priv->case_normalized_key);
if (priv->popup_window)
gtk_widget_destroy (priv->popup_window);
@@ -1095,8 +1094,7 @@ gtk_entry_completion_complete (GtkEntryCompletion *completion)
if (!completion->priv->filter_model)
return;
- if (completion->priv->case_normalized_key)
- g_free (completion->priv->case_normalized_key);
+ g_free (completion->priv->case_normalized_key);
tmp = g_utf8_normalize (gtk_entry_get_text (GTK_ENTRY (completion->priv->entry)),
-1, G_NORMALIZE_ALL);