[telepathy-mission-control/master] account-manager: only free the ptr array if it's non-NULL
Jonny Lamb
jonny.lamb at collabora.co.uk
Fri Sep 11 05:11:54 PDT 2009
Signed-off-by: Jonny Lamb <jonny.lamb at collabora.co.uk>
---
src/mcd-account-manager.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/mcd-account-manager.c b/src/mcd-account-manager.c
index 22f14db..b401935 100644
--- a/src/mcd-account-manager.c
+++ b/src/mcd-account-manager.c
@@ -488,8 +488,11 @@ complete_account_creation_set_cb (McdAccount *account, GPtrArray *not_yet,
complete_account_creation_finish (account, TRUE, cad);
}
- g_ptr_array_foreach (not_yet, (GFunc) g_free, NULL);
- g_ptr_array_free (not_yet, TRUE);
+ if (not_yet != NULL)
+ {
+ g_ptr_array_foreach (not_yet, (GFunc) g_free, NULL);
+ g_ptr_array_free (not_yet, TRUE);
+ }
}
static void
--
1.5.6.5
More information about the telepathy-commits
mailing list