[empathy] Prevent potential freeing of unitialized data
- From: Sjoerd Simons <sjoerds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] Prevent potential freeing of unitialized data
- Date: Wed, 29 Dec 2010 12:21:04 +0000 (UTC)
commit fff4889260ab902aeb409273e41c6f4c5078310c
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date: Mon Dec 27 14:55:19 2010 +0100
Prevent potential freeing of unitialized data
src/empathy-accounts-dialog.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index 93d3d54..7dda913 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]