diff options
author | Milan Crha <mcrha@redhat.com> | 2008-02-18 19:10:10 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2008-02-18 19:10:10 +0800 |
commit | a0bb856b78226d72fdbada28f554f717658749ba (patch) | |
tree | b9c2f4cb2fdb9760d68b75c405c364c087ad74c4 /widgets/misc | |
parent | 1157f25a6959581bb1ffee62d700f52cb49c7d4b (diff) | |
download | gsoc2013-evolution-a0bb856b78226d72fdbada28f554f717658749ba.tar gsoc2013-evolution-a0bb856b78226d72fdbada28f554f717658749ba.tar.gz gsoc2013-evolution-a0bb856b78226d72fdbada28f554f717658749ba.tar.bz2 gsoc2013-evolution-a0bb856b78226d72fdbada28f554f717658749ba.tar.lz gsoc2013-evolution-a0bb856b78226d72fdbada28f554f717658749ba.tar.xz gsoc2013-evolution-a0bb856b78226d72fdbada28f554f717658749ba.tar.zst gsoc2013-evolution-a0bb856b78226d72fdbada28f554f717658749ba.zip |
** Part of fix for bug #515744
2008-02-18 Milan Crha <mcrha@redhat.com>
** Part of fix for bug #515744
* addressbook/gui/component/addressbook-migrate.c: (get_source_name):
* plugins/groupwise-features/send-options.c: (get_source):
* plugins/groupwise-features/share-folder-common.c: (get_container_id):
* plugins/groupwise-features/install-shared.c: (install_folder_response):
* plugins/external-editor/external-editor.c: (convert_to_camel_internet_address),
(org_gnome_external_editor):
* plugins/itip-formatter/itip-formatter.c: (idle_open_cb):
* mail/em-folder-view.c: (emfv_setup_view_instance):
* mail/mail-component.c: (impl_finalize):
* mail/message-list.c: (ml_tree_value_at):
* composer/e-msg-composer.c: (drop_action):
* e-util/e-config.c: (ep_finalise): Use proper member to free.
* widgets/misc/e-cursors.c: (e_cursors_init):
* widgets/misc/e-calendar-item.c: (e_calendar_item_draw_month):
* calendar/gui/dialogs/comp-editor.c: (drop_action):
* calendar/gui/calendar-config.c:
(calendar_config_get_hide_completed_tasks_sexp):
* calendar/gui/comp-editor-factory.c: (edit_existing):
* calendar/gui/e-day-view.c: (e_day_view_reshape_long_event),
(e_day_view_on_top_canvas_drag_data_received):
* calendar/gui/e-day-view-main-item.c:
(e_day_view_main_item_draw_events_in_vbars),
(e_day_view_main_item_draw_long_events_in_vbars):
* calendar/gui/e-day-view-top-item.c: (e_day_view_top_item_draw_long_event):
* calendar/gui/e-cal-model.c: (redo_queries):
* calendar/gui/e-calendar-table.c: (e_calendar_table_open_task):
* calendar/gui/e-memo-table.c: (open_memo):
* calendar/gui/print.c: (print_todo_details):
* calendar/gui/migration.c: (get_source_name):
Memory leak fix.
* calendar/gui/e-week-view.c: (e_week_view_reshape_events): Simplifies things.
svn path=/trunk/; revision=35044
Diffstat (limited to 'widgets/misc')
-rw-r--r-- | widgets/misc/ChangeLog | 8 | ||||
-rw-r--r-- | widgets/misc/e-calendar-item.c | 5 | ||||
-rw-r--r-- | widgets/misc/e-cursors.c | 7 |
3 files changed, 17 insertions, 3 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog index 4600b576e1..46925425c9 100644 --- a/widgets/misc/ChangeLog +++ b/widgets/misc/ChangeLog @@ -1,3 +1,11 @@ +2008-02-18 Milan Crha <mcrha@redhat.com> + + ** Part of fix for bug #515744 + + * e-cursors.c: (e_cursors_init): + * e-calendar-item.c: (e_calendar_item_draw_month): + Memory leak fix. + 2008-02-18 Srinivasa Ragavan <sragavan@novell.com> ** Fix for bnc #178778 diff --git a/widgets/misc/e-calendar-item.c b/widgets/misc/e-calendar-item.c index 9eef0253a1..a1aa6f82be 100644 --- a/widgets/misc/e-calendar-item.c +++ b/widgets/misc/e-calendar-item.c @@ -1678,8 +1678,10 @@ e_calendar_item_draw_month (ECalendarItem *calitem, /* Just return if the month is outside the given area. */ if (month_x >= width || month_x + calitem->month_width <= 0 - || month_y >= height || month_y + calitem->month_height <= 0) + || month_y >= height || month_y + calitem->month_height <= 0) { + cairo_destroy (cr); return; + } month = calitem->month + row * calitem->cols + col; year = calitem->year + month / 12; @@ -1746,6 +1748,7 @@ e_calendar_item_draw_month (ECalendarItem *calitem, if (clip_width <= 0 || clip_height <= 0) { g_object_unref (layout); + cairo_destroy (cr); return; } diff --git a/widgets/misc/e-cursors.c b/widgets/misc/e-cursors.c index 5a709a6927..224c467733 100644 --- a/widgets/misc/e-cursors.c +++ b/widgets/misc/e-cursors.c @@ -115,11 +115,11 @@ e_cursors_init (void) e_color_init (); for (i = 0; cursors [i].hot_x; i++){ - GdkBitmap *bitmap = NULL, *mask = NULL; - if (cursors [i].hot_x < 0) cursors [i].cursor = gdk_cursor_new (cursors [i].hot_y); else { + GdkBitmap *bitmap = NULL, *mask = NULL; + create_bitmap_and_mask_from_xpm (&bitmap, &mask, cursors [i].xpm); /* The foreground and background colours are reversed. @@ -131,6 +131,9 @@ e_cursors_init (void) &e_black, &e_white, cursors [i].hot_x, cursors [i].hot_y); + + g_object_unref (bitmap); + g_object_unref (mask); } } |