Webkit: Avoid null pointer dereference when canceling resource loading qtwebkit-2.2
authorJonathan Liu <net147@gmail.com>
Thu, 7 Mar 2013 12:52:03 +0000 (23:52 +1100)
committerSimon Hausmann <simon.hausmann@digia.com>
Thu, 7 Mar 2013 12:59:04 +0000 (13:59 +0100)
commit5fc7dcbe084a8ee8beda11b92dc2111be1285434
treeeba10f9ca0ee09bc8c3b5acea01bea14c1415746
parent15d3ca1f5808e6acd522651da8a09e5a090e7053
Webkit: Avoid null pointer dereference when canceling resource loading

In some cases ResourceLoader::didCancel may run after the load has
already completed which results in a null pointer dereference. If the
load has already completed - do nothing.

This is a partial backport of r86720 in WebKit upstream.

Task-number: QTBUG-30081
Change-Id: I1e41594f6d7a81ec6c3d97367391b722918abae2

Signed-off-by: Simon Hausmann <simon.hausmann@digia.com>
Source/WebCore/loader/ResourceLoader.cpp