diff options
author | Hiroyuki Ikezoe <poincare@ikezoe.net> | 2007-07-27 13:59:06 +0800 |
---|---|---|
committer | Hiroyuki Ikezoe <hiikezoe@src.gnome.org> | 2007-07-27 13:59:06 +0800 |
commit | 5ff5e94bad7744a63a7ff36a9cf9c83a90b218bf (patch) | |
tree | 7ce515bab285f980414a64fb8939403254732b55 /calendar/gui/dialogs | |
parent | 2821b99a0b44a1ebf39da6b826950a5ab1b395ae (diff) | |
download | gsoc2013-evolution-5ff5e94bad7744a63a7ff36a9cf9c83a90b218bf.tar.gz gsoc2013-evolution-5ff5e94bad7744a63a7ff36a9cf9c83a90b218bf.tar.zst gsoc2013-evolution-5ff5e94bad7744a63a7ff36a9cf9c83a90b218bf.zip |
Plugged memory leaks.
2007-07-27 Hiroyuki Ikezoe <poincare@ikezoe.net>
* 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
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r-- | calendar/gui/dialogs/cal-prefs-dialog.c | 5 | ||||
-rw-r--r-- | calendar/gui/dialogs/e-send-options-utils.c | 1 | ||||
-rw-r--r-- | calendar/gui/dialogs/event-page.c | 1 | ||||
-rw-r--r-- | calendar/gui/dialogs/memo-page.c | 1 | ||||
-rw-r--r-- | calendar/gui/dialogs/task-page.c | 1 | ||||
-rw-r--r-- | calendar/gui/dialogs/url-editor-dialog.c | 2 |
6 files changed, 11 insertions, 0 deletions
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 |