[evolution-data-server] e_source_registry_dup_unique_display_name: Fix a memory leak
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] e_source_registry_dup_unique_display_name: Fix a memory leak
- Date: Mon, 24 Mar 2014 18:39:28 +0000 (UTC)
commit 8116a9aab7139adfe1af92feb878ae5d0c93a321
Author: Milan Crha <mcrha redhat com>
Date: Mon Mar 24 19:39:45 2014 +0100
e_source_registry_dup_unique_display_name: Fix a memory leak
g_list_remove_link() doesn't delete the link itself, thus it made
it leaked here.
libedataserver/e-source-registry.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libedataserver/e-source-registry.c b/libedataserver/e-source-registry.c
index df1e6b3..2f827d7 100644
--- a/libedataserver/e-source-registry.c
+++ b/libedataserver/e-source-registry.c
@@ -3191,7 +3191,7 @@ e_source_registry_dup_unique_display_name (ESourceRegistry *registry,
link = g_list_find (list, source);
if (link != NULL) {
g_object_unref (link->data);
- list = g_list_remove_link (list, link);
+ list = g_list_delete_link (list, link);
}
/* Now find another source with a matching display name. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]