Commit 75375260 authored by Kirill Burtsev's avatar Kirill Burtsev
Browse files

Remove download properly on profile destruction to avoid use after free


In the Widgets API, download items are children of the profile and are
destroyed when the parent profile destroys its children. The download
item's destructor can therefore not access the profile, as it would
cause a heap-use-after-free crashes. On quick side turn ongoing downloads
cleanup to match widgets one.

Fixes: QTBUG-73839
Change-Id: Iabb379e91187e3e68ebcd4693fec35883b72b1f2
Reviewed-by: default avatarMichael Brüning <michael.bruning@qt.io>
Reviewed-by: default avatarJüri Valdmann <juri.valdmann@qt.io>
parent 755f7e41
Showing with 77 additions and 25 deletions
Supports Markdown
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