1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-22 15:54:57 +00:00

fix: dangling reference crash in FreeSpaceLabel (#1694)

* fix: dangling reference crash in FreeSpaceLabel

Co-authored-by: Mike Gelfand <mikedld@users.noreply.github.com>
This commit is contained in:
Charles Kerr 2021-05-18 12:36:46 -05:00 committed by GitHub
parent 7026c91797
commit 7fd9fa15b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,7 +71,7 @@ void FreeSpaceLabel::onTimer()
tr_variantInitDict(&args, 1);
dictAdd(&args, TR_KEY_path, path_);
auto* q = new RpcQueue();
auto* q = new RpcQueue(this);
auto* alive = new bool(true);
connect(this, &QObject::destroyed, [alive] { *alive = false; });