From fff4889260ab902aeb409273e41c6f4c5078310c Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Mon, 27 Dec 2010 14:55:19 +0100 Subject: Prevent potential freeing of unitialized data --- src/empathy-accounts-dialog.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c index 93d3d543d..7dda91312 100644 --- a/src/empathy-accounts-dialog.c +++ b/src/empathy-accounts-dialog.c @@ -1502,9 +1502,9 @@ accounts_dialog_treeview_button_press_event_cb (GtkTreeView *view, EmpathyAccountsDialog *dialog) { EmpathyAccountsDialogPriv *priv = GET_PRIV (dialog); - TpAccount *account; - GtkTreeModel *model; - GtkTreePath *path; + TpAccount *account = NULL; + GtkTreeModel *model = NULL; + GtkTreePath *path = NULL; GtkTreeIter iter; GtkWidget *menu; GtkWidget *item_enable, *item_disable; @@ -1573,7 +1573,7 @@ accounts_dialog_treeview_button_press_event_cb (GtkTreeView *view, finally: tp_clear_object (&account); - tp_clear_pointer (&path, gtk_tree_path_free); + gtk_tree_path_free (path); return FALSE; } -- cgit v1.2.3