diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2010-12-27 21:55:19 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2010-12-29 19:56:00 +0800 |
commit | fff4889260ab902aeb409273e41c6f4c5078310c (patch) | |
tree | 8e4014257ee4ae5d0b5787159abf24d0995df728 /src | |
parent | 53a5a7f37188ffaf3e050c5ad2e0852095a85c4b (diff) | |
download | gsoc2013-empathy-fff4889260ab902aeb409273e41c6f4c5078310c.tar gsoc2013-empathy-fff4889260ab902aeb409273e41c6f4c5078310c.tar.gz gsoc2013-empathy-fff4889260ab902aeb409273e41c6f4c5078310c.tar.bz2 gsoc2013-empathy-fff4889260ab902aeb409273e41c6f4c5078310c.tar.lz gsoc2013-empathy-fff4889260ab902aeb409273e41c6f4c5078310c.tar.xz gsoc2013-empathy-fff4889260ab902aeb409273e41c6f4c5078310c.tar.zst gsoc2013-empathy-fff4889260ab902aeb409273e41c6f4c5078310c.zip |
Prevent potential freeing of unitialized data
Diffstat (limited to 'src')
-rw-r--r-- | 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 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; } |