[evolution-data-server/gnome-2-28] Bug #564727 - Few memory leaks
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-2-28] Bug #564727 - Few memory leaks
- Date: Mon, 22 Feb 2010 11:40:53 +0000 (UTC)
commit bd5527dc096ce4f05c3f1149731a46705bc5b756
Author: Milan Crha <mcrha redhat com>
Date: Mon Feb 22 12:40:09 2010 +0100
Bug #564727 - Few memory leaks
addressbook/backends/file/e-book-backend-file.c | 2 ++
calendar/libedata-cal/e-cal-backend-file-store.c | 2 +-
calendar/libedata-cal/e-cal-backend-store.c | 2 ++
3 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/backends/file/e-book-backend-file.c b/addressbook/backends/file/e-book-backend-file.c
index 3feac0e..c6292c8 100644
--- a/addressbook/backends/file/e-book-backend-file.c
+++ b/addressbook/backends/file/e-book-backend-file.c
@@ -996,6 +996,8 @@ e_book_backend_file_upgrade_db (EBookBackendFile *bf, gchar *old_version)
db_error = dbc->c_get(dbc, &id_dbt, &vcard_dbt, DB_NEXT);
}
+ dbc->c_close (dbc);
+
if (card_failed) {
g_warning ("failed to update %d cards", card_failed);
return FALSE;
diff --git a/calendar/libedata-cal/e-cal-backend-file-store.c b/calendar/libedata-cal/e-cal-backend-file-store.c
index 6e7bb44..0272078 100644
--- a/calendar/libedata-cal/e-cal-backend-file-store.c
+++ b/calendar/libedata-cal/e-cal-backend-file-store.c
@@ -134,7 +134,7 @@ put_component (ECalBackendFileStore *fstore, ECalComponent *comp)
gchar *rid = e_cal_component_get_recurid_as_string (comp);
g_object_ref (comp);
- g_hash_table_insert (obj->recurrences, g_strdup (rid), comp);
+ g_hash_table_insert (obj->recurrences, rid, comp);
}
g_static_rw_lock_writer_unlock (&priv->lock);
diff --git a/calendar/libedata-cal/e-cal-backend-store.c b/calendar/libedata-cal/e-cal-backend-store.c
index 64dc7e7..ad88478 100644
--- a/calendar/libedata-cal/e-cal-backend-store.c
+++ b/calendar/libedata-cal/e-cal-backend-store.c
@@ -77,6 +77,8 @@ set_store_path (ECalBackendStore *store)
priv->path = g_build_filename (g_get_home_dir (), ".evolution/cache/",
component, mangled_uri, NULL);
+
+ g_free (mangled_uri);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]