From e8716a1e54f73799c6c23e4830fcc03db9fe519f Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 15 Oct 2013 18:10:49 +0100 Subject: [PATCH 4/4] McdCreateAccountData: correctly free the user-data In theory this is a bugfix, but nothing within MC actually calls this function with a non-NULL GDestroyNotify anyway, and it isn't API. --- src/mcd-account-manager.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mcd-account-manager.c b/src/mcd-account-manager.c index 029c0c2..cd10461 100644 --- a/src/mcd-account-manager.c +++ b/src/mcd-account-manager.c @@ -653,6 +653,9 @@ mcd_create_account_data_free (McdCreateAccountData *cad) if (G_UNLIKELY (cad->error)) g_error_free (cad->error); + if (cad->destroy != NULL) + cad->destroy (cad->user_data); + g_free (cad->cm_name); g_free (cad->protocol_name); g_free (cad->display_name); -- 1.8.4.rc3