WMF Backend: Fix crash in MFPlayerService::releaseControl.
authorJason Barron <jason.barron@nokia.com>
Tue, 4 Sep 2012 08:47:04 +0000 (10:47 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 4 Sep 2012 09:31:16 +0000 (11:31 +0200)
commitbc2bce3629e93392de9e3272f65cabb8f8b0121f
treeb45c815a44fb0811ac4fb5f3f959eb9abd1d2752
parentc15b2833bad91d26ccacf49047d935664fb341e5
WMF Backend: Fix crash in MFPlayerService::releaseControl.

When releasing a video render control or a video window control, we
were deleting the object pointed to by the 'control' pointer, but
were not setting this pointer to 0 which left it dangling. Shortly
after we tried to cast this dangling pointer to another type which
crashed. The solution is just to return after deleting the control.

Change-Id: I9ab672c8b86a13af889d87c76141e6b8db5b74a7
Reviewed-by: Andy Nichols <andy.nichols@nokia.com>
src/plugins/wmf/player/mfplayerservice.cpp