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 | |
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')
-rw-r--r-- | calendar/ChangeLog | 13 | ||||
-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 | ||||
-rw-r--r-- | calendar/gui/e-day-view-top-item.c | 7 | ||||
-rw-r--r-- | calendar/gui/e-pub-utils.c | 1 | ||||
-rw-r--r-- | calendar/gui/e-week-view-event-item.c | 5 |
10 files changed, 34 insertions, 3 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 6512947a85..4168d1ce67 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,16 @@ +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. + 2007-07-26 Hiroyuki Ikezoe <poincare@ikezoe.net> * gui/main.c: Do not need to call g_source_remove(). If the callback 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 diff --git a/calendar/gui/e-day-view-top-item.c b/calendar/gui/e-day-view-top-item.c index ea487a1951..5e960ac8d5 100644 --- a/calendar/gui/e-day-view-top-item.c +++ b/calendar/gui/e-day-view-top-item.c @@ -838,6 +838,7 @@ e_day_view_top_item_draw_long_event (EDayViewTopItem *dvtitem, { EDayView *day_view; EDayViewEvent *event; + GConfClient *gconf_client; GtkStyle *style; GdkGC *gc, *fg_gc; gint start_day, end_day; @@ -865,13 +866,15 @@ e_day_view_top_item_draw_long_event (EDayViewTopItem *dvtitem, day_view = dvtitem->day_view; cr = gdk_cairo_create (drawable); - alpha = gconf_client_get_float (gconf_client_get_default (), + gconf_client = gconf_client_get_default (); + alpha = gconf_client_get_float (gconf_client, "/apps/evolution/calendar/display/events_transparency", NULL); - gradient = gconf_client_get_bool (gconf_client_get_default (), + gradient = gconf_client_get_bool (gconf_client, "/apps/evolution/calendar/display/events_gradient", NULL); + g_object_unref (gconf_client); /* If the event is currently being dragged, don't draw it. It will be drawn in the special drag items. */ diff --git a/calendar/gui/e-pub-utils.c b/calendar/gui/e-pub-utils.c index a4e1d245a8..5b90b6379a 100644 --- a/calendar/gui/e-pub-utils.c +++ b/calendar/gui/e-pub-utils.c @@ -183,6 +183,7 @@ e_pub_publish (gboolean publish) { gconf_client = gconf_client_get_default (); source_list = e_source_list_new_for_gconf (gconf_client, "/apps/evolution/calendar/sources"); + g_object_unref (gconf_client); utc = icaltimezone_get_utc_timezone (); start = time_day_begin_with_zone (start, utc); diff --git a/calendar/gui/e-week-view-event-item.c b/calendar/gui/e-week-view-event-item.c index fd663fbe70..0632862282 100644 --- a/calendar/gui/e-week-view-event-item.c +++ b/calendar/gui/e-week-view-event-item.c @@ -795,6 +795,7 @@ e_week_view_event_item_draw (GnomeCanvasItem *canvas_item, EWeekView *week_view; EWeekViewEvent *event; EWeekViewEventSpan *span; + GConfClient *gconf_client; GdkGC *gc; gint x1, y1, x2, y2, time_x, time_y; gint icon_x, icon_y, time_width, min_end_time_x, max_icon_x; @@ -828,9 +829,11 @@ e_week_view_event_item_draw (GnomeCanvasItem *canvas_item, g_return_if_fail(wveitem->event_num < week_view->events->len); - gradient = gconf_client_get_bool (gconf_client_get_default (), + gconf_client = gconf_client_get_default (); + gradient = gconf_client_get_bool (gconf_client, "/apps/evolution/calendar/display/events_gradient", NULL); + g_object_unref (gconf_client); event = &g_array_index (week_view->events, EWeekViewEvent, wveitem->event_num); |