[evolution/evolution-3-12] Runtime criticals when closing an appointment editor with reminders



commit 02e30ea2f06ea4ed48f6f7ec5286b3a5c0ce4edc
Author: Milan Crha <mcrha redhat com>
Date:   Fri May 23 14:51:05 2014 +0200

    Runtime criticals when closing an appointment editor with reminders
    
    There were printed two runtime warnings on close of an appointment
    editor when the appointment had filled any reminder. It was a side
    effect of a recent leak fix in an EAlarmList. The criticals were not
    critical, a NULL pointer had been used on a place where it should not.

 calendar/gui/dialogs/event-page.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c
index 93bc740..0bd8efa 100644
--- a/calendar/gui/dialogs/event-page.c
+++ b/calendar/gui/dialogs/event-page.c
@@ -904,7 +904,13 @@ event_page_dispose (GObject *object)
                priv->builder = NULL;
        }
 
+       if (priv->alarm_time_combo) {
+               g_signal_handlers_disconnect_matched (priv->alarm_time_combo, G_SIGNAL_MATCH_DATA, 0, 0, 
NULL, NULL, object);
+       }
+
        if (priv->alarm_list_store != NULL) {
+               g_signal_handlers_disconnect_matched (priv->alarm_list_store, G_SIGNAL_MATCH_DATA, 0, 0, 
NULL, NULL, object);
+
                g_object_unref (priv->alarm_list_store);
                priv->alarm_list_store = NULL;
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]