From 90e3e5497f9b6b7555036c776c77f2c81a4c839d Mon Sep 17 00:00:00 2001 From: Sushma Rai Date: Mon, 6 Feb 2006 08:53:21 +0000 Subject: Fixed memory leaks. Fixes #329251. svn path=/trunk/; revision=31418 --- plugins/exchange-operations/exchange-permissions-dialog.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'plugins/exchange-operations/exchange-permissions-dialog.c') diff --git a/plugins/exchange-operations/exchange-permissions-dialog.c b/plugins/exchange-operations/exchange-permissions-dialog.c index b8a3fd45a4..9c9aaefb50 100644 --- a/plugins/exchange-operations/exchange-permissions-dialog.c +++ b/plugins/exchange-operations/exchange-permissions-dialog.c @@ -169,7 +169,7 @@ exchange_permissions_dialog_new (ExchangeAccount *account, char *title; E2kHTTPStatus status; E2kResult *results; - int nresults; + int nresults = 0; xmlNode *xml_form; GByteArray *binary_form; @@ -229,6 +229,8 @@ exchange_permissions_dialog_new (ExchangeAccount *account, lose: e_error_run (GTK_WINDOW (parent), ERROR_DOMAIN ":perm-read-error", NULL); gtk_widget_destroy (GTK_WIDGET (dialog)); + if (nresults) + e2k_results_free (results, nresults); return; } @@ -245,6 +247,8 @@ exchange_permissions_dialog_new (ExchangeAccount *account, setup_user_list (dialog); gtk_widget_show (GTK_WIDGET (dialog)); + if (nresults) + e2k_results_free (results, nresults); } static void -- cgit v1.2.3