Fixed crash when QMediaObject is deleted before QMediaRecorder.

Change-Id: I8a1674b6f3d2b2c9ab888facff21f94af41b81de
Reviewed-on: http://codereview.qt.nokia.com/3544
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
This commit is contained in:
Dmytro Poplavskiy
2011-08-25 12:31:00 +10:00
committed by Qt by Nokia
parent 5d71ee6abf
commit ba62df130c
3 changed files with 27 additions and 1 deletions

View File

@@ -168,7 +168,12 @@ void QMediaRecorderPrivate::_q_error(int error, const QString &errorString)
void QMediaRecorderPrivate::_q_serviceDestroyed()
{
q_func()->setMediaObject(0);
mediaObject = 0;
control = 0;
formatControl = 0;
audioControl = 0;
videoControl = 0;
metaDataControl = 0;
}
void QMediaRecorderPrivate::_q_notify()