[gdm] Fix a string leak
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] Fix a string leak
- Date: Fri, 11 Jun 2010 05:49:19 +0000 (UTC)
commit 5492a8310bc52cd54940426c68381f1d23273ac9
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 652da24..3d10e8e 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]