aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-day-view-top-item.c
diff options
context:
space:
mode:
authorHiroyuki Ikezoe <poincare@ikezoe.net>2007-07-27 13:59:06 +0800
committerHiroyuki Ikezoe <hiikezoe@src.gnome.org>2007-07-27 13:59:06 +0800
commit5ff5e94bad7744a63a7ff36a9cf9c83a90b218bf (patch)
tree7ce515bab285f980414a64fb8939403254732b55 /calendar/gui/e-day-view-top-item.c
parent2821b99a0b44a1ebf39da6b826950a5ab1b395ae (diff)
downloadgsoc2013-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/e-day-view-top-item.c')
-rw-r--r--calendar/gui/e-day-view-top-item.c7
1 files changed, 5 insertions, 2 deletions
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. */