Commit 1487a93e authored by Lars Knoll's avatar Lars Knoll
Browse files

Fix a possible use after free


Found by coverity. The cachedIcon can be deleted
when being inserted into the icon cache (in QCache::insert).
So copy it to icon before trying to insert it into the cache.

Change-Id: I5ed13c0c7ecb8f8f13285ca5d06237493dbea479
Reviewed-by: default avatarLaszlo Agocs <laszlo.agocs@digia.com>
parent 848d29cc
No related merge requests found
Showing with 1 addition and 1 deletion
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