[evolution-data-server] Bug 738288 - EBookSqlite is leaking memory in ebsql_ref_from_hash function
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug 738288 - EBookSqlite is leaking memory in ebsql_ref_from_hash function
- Date: Mon, 20 Oct 2014 16:09:36 +0000 (UTC)
commit 0a04c4aba99ed0830cb3972ea8a7531120bac223
Author: Mateusz Polrola <mateusz polrola gmail com>
Date: Mon Oct 20 18:09:12 2014 +0200
Bug 738288 - EBookSqlite is leaking memory in ebsql_ref_from_hash function
ebsql_ref_from_hash from EBookSqlite is always returning NULL, even if instance
for given database was found in hash and its reference count was increased,
creating memory leak.
addressbook/libedata-book/e-book-sqlite.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/libedata-book/e-book-sqlite.c b/addressbook/libedata-book/e-book-sqlite.c
index 68689df..905dec7 100644
--- a/addressbook/libedata-book/e-book-sqlite.c
+++ b/addressbook/libedata-book/e-book-sqlite.c
@@ -741,7 +741,7 @@ ebsql_ref_from_hash (const gchar *path)
g_object_ref (ebsql);
}
- return NULL;
+ return ebsql;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]