[evolution-data-server/gnome-3-18] source_registry_server_process_file_monitor_event - Correct possible runtime warning
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-3-18] source_registry_server_process_file_monitor_event - Correct possible runtime warning
- Date: Wed, 23 Sep 2015 14:10:37 +0000 (UTC)
commit a44a678d823aba8e2911c0ce367b56e94b814d47
Author: Milan Crha <mcrha redhat com>
Date: Wed Sep 23 16:07:10 2015 +0200
source_registry_server_process_file_monitor_event - Correct possible runtime warning
When the source file is not loaded yet, then the corresponding ESource
object is NULL, but the call calls g_object_unref() on it, which leads
to a runtime warning, even harmless.
libebackend/e-source-registry-server.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libebackend/e-source-registry-server.c b/libebackend/e-source-registry-server.c
index 7d34c66..4552c95 100644
--- a/libebackend/e-source-registry-server.c
+++ b/libebackend/e-source-registry-server.c
@@ -500,7 +500,7 @@ source_registry_server_process_file_monitor_event (gpointer key,
return;
}
- g_object_unref (source);
+ g_clear_object (&source);
}
if (event_type == G_FILE_MONITOR_EVENT_CREATED) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]