[tracker/wip/carlosg/portal-test-timeouts: 2/2] libtracker-data: Plug memory leak
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/portal-test-timeouts: 2/2] libtracker-data: Plug memory leak
- Date: Tue, 6 Jul 2021 09:58:07 +0000 (UTC)
commit 8ef9e46c3c91a6b0cc8492b5e2b7aef874ac1906
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Jul 6 11:54:45 2021 +0200
libtracker-data: Plug memory leak
We get a new reference to the GDBusConnection here, so it should
be unref() after use.
src/libtracker-data/tracker-data-manager.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index f3104b980..afed61736 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -5021,6 +5021,7 @@ tracker_data_manager_get_remote_connection (TrackerDataManager *data_manager,
dbus_connection, &inner_error);
g_free (bus_name);
g_free (object_path);
+ g_object_unref (dbus_connection);
if (!connection)
goto fail;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]