client: Remove reference to g_steal_pointer()
PATCH 1/1 client: Remove reference to g_steal_pointer()
In order to avoid requiring higher version of GLib, replace g_steal_pointer() with explicitly setting the pointer value to NULL.
--- client/adv_monitor.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-)
client/adv_monitor.c +10 -4
@@ -254,10 +254,16 @@ void adv_monitor_add_manager(DBusConnection *conn, GDBusProxy *proxy)void adv_monitor_remove_manager (DBusConnection *conn) { -if (manager.supported_types !=NULL ) -g_slist_free (g_steal_pointer (&(manager.supported_types))); -if (manager.supported_features !=NULL ) -g_slist_free (g_steal_pointer (&(manager.supported_features))); +if (manager.supported_types !=NULL ) { +g_slist_free (manager.supported_types); + manager.supported_types =NULL ; + } + +if (manager.supported_features !=NULL ) { +g_slist_free (manager.supported_features); + manager.supported_features =NULL ; + } + manager.proxy =NULL ; manager.app_registered = FALSE; }
Signature · 1 line
2.26.2
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=380609
---Test result---
##############################
Test: CheckPatch - PASS
##############################
Test: CheckGitLint - PASS
##############################
Test: CheckBuild - PASS
##############################
Test: MakeCheck - PASS
---
Regards,
Linux Bluetooth
Hi Inga,
Quoted 20 lines · On Mon, Nov 9, 2020 at 11:50 AM <[email protected]> wrote:
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=380609---Test result---
##############################
Test: CheckPatch - PASS##############################
Test: CheckGitLint - PASS##############################
Test: CheckBuild - PASS
Quoted 8 lines
##############################
Test: MakeCheck - PASS---
Regards,
Linux Bluetooth
Applied, thanks.
Signature · 1 line
Luiz Augusto von Dentz