[gdm/gnome-2-30] Fix a string leak
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm/gnome-2-30] Fix a string leak
- Date: Fri, 11 Jun 2010 05:50:19 +0000 (UTC)
commit 420300e653a2fb6340a02129b0cb1546cd82f6e5
Author: William Jon McCann <jmccann redhat com>
Date: Fri Jun 11 01:29:34 2010 -0400
Fix a string leak
gui/simple-greeter/gdm-chooser-widget.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-chooser-widget.c b/gui/simple-greeter/gdm-chooser-widget.c
index cf61be9..a52b687 100644
--- a/gui/simple-greeter/gdm-chooser-widget.c
+++ b/gui/simple-greeter/gdm-chooser-widget.c
@@ -731,7 +731,7 @@ set_inactive_items_visible (GdmChooserWidget *widget,
model = GTK_TREE_MODEL (widget->priv->list_store);
if (!gtk_tree_model_get_iter_first (model, &iter)) {
- return;
+ goto out;
}
/* unset tree view model to hide row add/remove signals from gail */
@@ -760,9 +760,10 @@ set_inactive_items_visible (GdmChooserWidget *widget,
gtk_tree_view_set_model (GTK_TREE_VIEW (widget->priv->items_view), view_model);
g_object_unref (view_model);
- g_free (active_item_id);
-
queue_update_separator_visibility (widget);
+
+ out:
+ g_free (active_item_id);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]