From: Ross Burton Date: Sun, 11 Nov 2007 11:47:56 +0000 (+0000) Subject: Fix leak (#494304, Ondrej Jirman) X-Git-Tag: upstream/3.7.4~5422 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0bf596d754a99a28dc68cc1d0321446fd3d1bdb3;p=platform%2Fupstream%2Fevolution-data-server.git Fix leak (#494304, Ondrej Jirman) 2007-11-11 Ross Burton * backends/contacts/e-cal-backend-contacts.c: Fix leak (#494304, Ondrej Jirman) svn path=/trunk/; revision=8190 --- diff --git a/calendar/ChangeLog b/calendar/ChangeLog index ab55430..9724bfc 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +2007-11-11 Ross Burton + + * backends/contacts/e-cal-backend-contacts.c: + Fix leak (#494304, Ondrej Jirman) + 2007-11-05 Milan Crha * libedata-cal/e-cal-backend-sexp.c: (func_has_start), diff --git a/calendar/backends/contacts/e-cal-backend-contacts.c b/calendar/backends/contacts/e-cal-backend-contacts.c index d860a27..4cc027b 100644 --- a/calendar/backends/contacts/e-cal-backend-contacts.c +++ b/calendar/backends/contacts/e-cal-backend-contacts.c @@ -104,6 +104,8 @@ book_record_new (ECalBackendContacts *cbc, ESource *source) if (!e_book_get_book_view (book, query, fields, -1, &book_view, NULL)) { g_list_free (fields); e_book_query_unref (query); + g_object_unref (book); + g_list_free (fields); return NULL; } e_book_query_unref (query);