Detach image data when returning an ImageFrame as a native image.
authorMichael BrĂ¼ning <michael.bruning@digia.com>
Thu, 21 Nov 2013 16:22:21 +0000 (17:22 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 22 Nov 2013 06:37:13 +0000 (07:37 +0100)
commit8d3a15280a63d88341115933d4e8a3a2074d51c6
tree09cc9b8c9746df21790f7b74a06f336e02c193fe
parent0224bf8f12293cc24f76649fb4881b93d1353373
Detach image data when returning an ImageFrame as a native image.

With error analysis and fixing guidance by Allan Sandfeld Jensen.

This caused crashes when a gif was being loaded and the data in the
backing store for image frame was prematurely freed.

Task-number: QTBUG-31936
Change-Id: I7f4454db00cbbcf53f18060aa986a843c7522d57
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Source/WebCore/platform/graphics/qt/ImageDecoderQt.cpp