Do not crash when closing pop-ups in widget apps.
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Fri, 13 Apr 2012 08:57:22 +0000 (11:57 +0300)
committerJørgen Lind <jorgen.lind@nokia.com>
Tue, 17 Apr 2012 11:08:40 +0000 (13:08 +0200)
commit801b800cd2baffa9d3080ec3184ffd1af6b9bde8
treec605eeea843aa4b055869117bc653c58ce0befd1
parent9490aec9c20d893772b7f4be03e8d4697fc117a4
Do not crash when closing pop-ups in widget apps.

The shm frame callback has to be destroyed otherwise the callback will
occur after the dtor. Also, start using the previously unused 'window'
variable in the callback.

Change-Id: Iace09ae981344dcbe4112f49fcd19491963e4668
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
src/plugins/platforms/wayland/qwaylandshmbackingstore.cpp