From 3506b02eedc49959bf3e04c7f569ef2b4d8c1ee7 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 23 Apr 2012 16:43:08 +0200 Subject: Fix possible memory leaks of GError structures --- plugins/itip-formatter/itip-formatter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/itip-formatter/itip-formatter.c') diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c index 16f7a21d53..f2e92a0230 100644 --- a/plugins/itip-formatter/itip-formatter.c +++ b/plugins/itip-formatter/itip-formatter.c @@ -906,7 +906,7 @@ get_object_with_rid_ready_cb (GObject *source_object, if (g_error_matches (error, E_CLIENT_ERROR, E_CLIENT_ERROR_CANCELLED) || g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED) || g_cancellable_is_cancelled (fd->cancellable)) { - g_error_free (error); + g_clear_error (&error); find_cal_update_ui (fd, cal_client); decrease_find_data (fd); return; -- cgit v1.2.3