From 233048a0df1f97df7fbd11863b6331eaf5b3ca25 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 12 Dec 2018 13:36:53 +0000 Subject: [PATCH] lib: Fix support for custom GDBusConnections when setting filters Previously, a caller-provided custom GDBusConnection was dropped on the ground. Signed-off-by: Philip Withnall https://phabricator.endlessm.com/T24004 --- libeos-parental-controls/app-filter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libeos-parental-controls/app-filter.c b/libeos-parental-controls/app-filter.c index e4e6849..dc8e11d 100644 --- a/libeos-parental-controls/app-filter.c +++ b/libeos-parental-controls/app-filter.c @@ -1025,6 +1025,7 @@ epc_set_app_filter_async (GDBusConnection *connection, g_task_set_source_tag (task, epc_set_app_filter_async); data = g_new0 (SetAppFilterData, 1); + data->connection = (connection != NULL) ? g_object_ref (connection) : NULL; data->user_id = user_id; data->app_filter = epc_app_filter_ref (app_filter); data->allow_interactive_authorization = allow_interactive_authorization;