mirror of
https://github.com/transmission/transmission
synced 2024-12-23 00:04:06 +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:
parent
7026c91797
commit
7fd9fa15b7
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ void FreeSpaceLabel::onTimer()
|
||||||
tr_variantInitDict(&args, 1);
|
tr_variantInitDict(&args, 1);
|
||||||
dictAdd(&args, TR_KEY_path, path_);
|
dictAdd(&args, TR_KEY_path, path_);
|
||||||
|
|
||||||
auto* q = new RpcQueue();
|
auto* q = new RpcQueue(this);
|
||||||
|
|
||||||
auto* alive = new bool(true);
|
auto* alive = new bool(true);
|
||||||
connect(this, &QObject::destroyed, [alive] { *alive = false; });
|
connect(this, &QObject::destroyed, [alive] { *alive = false; });
|
||||||
|
|
Loading…
Reference in a new issue