From 5ff5e94bad7744a63a7ff36a9cf9c83a90b218bf Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Fri, 27 Jul 2007 05:59:06 +0000 Subject: Plugged memory leaks. 2007-07-27 Hiroyuki Ikezoe * dialogs/cal-prefs-dialog.c: (calendar_prefs_dialog_finalize): * dialogs/task-page.c: (task_page_create_source_option_menu): * dialogs/e-send-options-utils.c: (e_sendoptions_utils_set_default_data): * dialogs/url-editor-dialog.c: (init_widgets): * dialogs/event-page.c: (event_page_create_source_option_menu): * dialogs/memo-page.c: (memo_page_create_source_option_menu): * e-week-view-event-item.c: (e_week_view_event_item_draw): * e-day-view-top-item.c: (e_day_view_top_item_draw_long_event): * e-pub-utils.c: (e_pub_publish): Plugged memory leaks. svn path=/trunk/; revision=33857 --- calendar/gui/dialogs/cal-prefs-dialog.c | 5 +++++ calendar/gui/dialogs/e-send-options-utils.c | 1 + calendar/gui/dialogs/event-page.c | 1 + calendar/gui/dialogs/memo-page.c | 1 + calendar/gui/dialogs/task-page.c | 1 + calendar/gui/dialogs/url-editor-dialog.c | 2 ++ 6 files changed, 11 insertions(+) (limited to 'calendar/gui/dialogs') diff --git a/calendar/gui/dialogs/cal-prefs-dialog.c b/calendar/gui/dialogs/cal-prefs-dialog.c index 159a6b4578..724d4683a8 100644 --- a/calendar/gui/dialogs/cal-prefs-dialog.c +++ b/calendar/gui/dialogs/cal-prefs-dialog.c @@ -67,6 +67,11 @@ calendar_prefs_dialog_finalize (GObject *obj) g_object_unref (prefs->gui); + if (prefs->gconf) { + g_object_unref (prefs->gconf); + prefs->gconf = NULL; + } + ((GObjectClass *)(parent_class))->finalize (obj); } diff --git a/calendar/gui/dialogs/e-send-options-utils.c b/calendar/gui/dialogs/e-send-options-utils.c index 0999605e07..f263b18865 100644 --- a/calendar/gui/dialogs/e-send-options-utils.c +++ b/calendar/gui/dialogs/e-send-options-utils.c @@ -143,6 +143,7 @@ e_sendoptions_utils_set_default_data (ESendOptionsDialog *sod, ESource *source, sopts->completed = E_RETURN_NOTIFY_MAIL; } + g_object_unref (gconf); } void diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c index 91787bc12f..de1048c793 100644 --- a/calendar/gui/dialogs/event-page.c +++ b/calendar/gui/dialogs/event-page.c @@ -3175,6 +3175,7 @@ event_page_create_source_option_menu (void) menu = e_source_option_menu_new (source_list); g_object_unref (source_list); + g_object_unref (gconf_client); gtk_widget_show (menu); return menu; diff --git a/calendar/gui/dialogs/memo-page.c b/calendar/gui/dialogs/memo-page.c index b307da3ed8..6f2d1af20f 100644 --- a/calendar/gui/dialogs/memo-page.c +++ b/calendar/gui/dialogs/memo-page.c @@ -1179,6 +1179,7 @@ memo_page_create_source_option_menu (void) menu = e_source_option_menu_new (source_list); g_object_unref (source_list); + g_object_unref (gconf_client); gtk_widget_show (menu); return menu; diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c index 43a9b793eb..e839d3a810 100644 --- a/calendar/gui/dialogs/task-page.c +++ b/calendar/gui/dialogs/task-page.c @@ -1969,6 +1969,7 @@ task_page_create_source_option_menu (void) menu = e_source_option_menu_new (source_list); g_object_unref (source_list); + g_object_unref (gconf_client); gtk_widget_show (menu); return menu; diff --git a/calendar/gui/dialogs/url-editor-dialog.c b/calendar/gui/dialogs/url-editor-dialog.c index e7759955fe..b9245d6a53 100644 --- a/calendar/gui/dialogs/url-editor-dialog.c +++ b/calendar/gui/dialogs/url-editor-dialog.c @@ -306,6 +306,8 @@ init_widgets (UrlDialogData *url_dlg_data) } gtk_widget_show (url_dlg_data->scrolled_window); + + g_object_unref (gconf_client); } static void -- cgit v1.2.3