Commit 1eacae52 authored by Harald Sitter's avatar Harald Sitter 🏳🌈
Browse files

smb: do not leak pbsd resolvers

parent them to the discoverer. discoverer lives on the stack and is unwound
once discovery is complete (or the eventloop timeout hit)

Test Plan: made a dtor that qdebugged, dtor is now executed as expected

Reviewers: ngraham

Reviewed By: ngraham

Subscribers: kde-frameworks-devel, kfm-devel

Tags: #dolphin, #frameworks

Differential Revision:
parent bb83a071
......@@ -271,7 +271,7 @@ void WSDiscoverer::resolveReceived(const QSharedPointer<WSDiscoveryTargetService
PBSDResolver *resolver = new PBSDResolver(addr, service->endpointReference());
PBSDResolver *resolver = new PBSDResolver(addr, service->endpointReference(), this);
connect(resolver, &PBSDResolver::resolved, this, [this](Discovery::Ptr discovery) {
emit newDiscovery(discovery);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment