From 15c378af98e230bc434f3324c13efab4cb1cf601 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20Michalak-Szmaci=C5=84ski?= Date: Tue, 26 Sep 2023 13:58:45 +0200 Subject: [PATCH] Fix badly used MakeUniquePointerReceiver --- src/platform/Linux/ConnectivityManagerImpl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/Linux/ConnectivityManagerImpl.cpp b/src/platform/Linux/ConnectivityManagerImpl.cpp index 5d624a022c9e4f..388d5fc826d23a 100644 --- a/src/platform/Linux/ConnectivityManagerImpl.cpp +++ b/src/platform/Linux/ConnectivityManagerImpl.cpp @@ -1557,7 +1557,7 @@ bool ConnectivityManagerImpl::_GetBssInfo(const gchar * bssPath, NetworkCommissi { return 0; } - const gchar ** keyMgmts = g_variant_get_strv(MakeUniquePointerReceiver(keyMgmt).Get(), nullptr); + const gchar ** keyMgmts = g_variant_get_strv(keyMgmt.get(), nullptr); const gchar ** keyMgmtsForFree = keyMgmts; uint8_t res = 0; for (const gchar * keyMgmtVal = (keyMgmts != nullptr ? *keyMgmts : nullptr); keyMgmtVal != nullptr; @@ -1585,7 +1585,7 @@ bool ConnectivityManagerImpl::_GetBssInfo(const gchar * bssPath, NetworkCommissi { return 0; } - const gchar ** keyMgmts = g_variant_get_strv(MakeUniquePointerReceiver(keyMgmt).Get(), nullptr); + const gchar ** keyMgmts = g_variant_get_strv(keyMgmt.get(), nullptr); const gchar ** keyMgmtsForFree = keyMgmts; uint8_t res = 0; for (const gchar * keyMgmtVal = (keyMgmts != nullptr ? *keyMgmts : nullptr); keyMgmtVal != nullptr;