diff options
Diffstat (limited to 'src/neighbor')
-rw-r--r-- | src/neighbor/plugins/UpnpNeighborPlugin.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/neighbor/plugins/UpnpNeighborPlugin.cxx b/src/neighbor/plugins/UpnpNeighborPlugin.cxx index 6d160be7f..b034fa96d 100644 --- a/src/neighbor/plugins/UpnpNeighborPlugin.cxx +++ b/src/neighbor/plugins/UpnpNeighborPlugin.cxx @@ -76,8 +76,7 @@ private: void UpnpNeighborExplorer::Open() { - UpnpClient_Handle handle; - UpnpClientGlobalInit(handle); + auto handle = UpnpClientGlobalInit(); discovery = new UPnPDeviceDirectory(event_loop, handle, this); |