diff options
author | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2014-01-30 11:15:18 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-30 12:13:26 +0100 |
commit | f5d7c6904da2dc5483bdfc202cb921b1c816f57a (patch) | |
tree | 985eb4c8b81cff570c50962a27a40cbb78f7d554 /Source/JavaScriptCore/API/JSBase.cpp | |
parent | 5535b404cb32791f510193073c9d15470552129f (diff) | |
download | qtwebkit-f5d7c6904da2dc5483bdfc202cb921b1c816f57a.tar.gz |
Do not notifyFinished on resources never loaded
If autoload images is disabled, the CachedImage element never starts
loading but still needs loading. We therefore need to check both
isLoading() and stillNeedsLoad() to determine if loading is complete.
This fixes a serious memory leak when autoload images is disabled.
Task-number: QTBUG-34494
Change-Id: I36811179d95e23651fabe484fbde08e2881d822b
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'Source/JavaScriptCore/API/JSBase.cpp')
0 files changed, 0 insertions, 0 deletions