From 0ee1a173d52a671b2c3c0656fda74e6015cfd225 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 22 Aug 2012 19:33:53 +0200 Subject: Disconnect signal handler from 'candidate' on its free --- widgets/misc/e-source-config.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'widgets/misc') diff --git a/widgets/misc/e-source-config.c b/widgets/misc/e-source-config.c index 79d2e24f61..16c3c05f64 100644 --- a/widgets/misc/e-source-config.c +++ b/widgets/misc/e-source-config.c @@ -231,6 +231,10 @@ source_config_add_candidate (ESourceConfig *config, static void source_config_free_candidate (Candidate *candidate) { + g_signal_handlers_disconnect_matched ( + candidate->scratch_source, G_SIGNAL_MATCH_FUNC, + 0, 0, NULL, G_CALLBACK (e_source_config_check_complete), NULL); + g_object_unref (candidate->page); g_object_unref (candidate->scratch_source); g_object_unref (candidate->backend); -- cgit v1.2.3