WMF: Fixed crash when cancelling media loading.
authorYoann Lopes <yoann.lopes@digia.com>
Tue, 11 Dec 2012 16:13:26 +0000 (17:13 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 11 Dec 2012 17:13:03 +0000 (18:13 +0100)
commit12bbd990473677c5b3b1c37c317819e73b606e4a
treee49115c0803d4c42a5b4041ca973d9be2e5b9f99
parent3f84142aaa0c63edf6fdc1e144ab29be51a29af9
WMF: Fixed crash when cancelling media loading.

Since media loading is asynchronous, cancelling could cause a crash when
done after the media is loaded but the callback hasn't been called yet.

Change-Id: I9c9b7bfaa495b9e75765111c15afb07e8b699488
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
src/plugins/wmf/sourceresolver.cpp