diff options
author | Jason Barron <jason.barron@nokia.com> | 2010-10-08 07:08:54 (GMT) |
---|---|---|
committer | Jason Barron <jason.barron@nokia.com> | 2010-10-08 09:33:59 (GMT) |
commit | 978416807b7e92d9317036cb4348ee172dde7d4e (patch) | |
tree | a8a3e4650dad4f2e88be1c2e31fb3a4723cff195 /translations/qvfb_zh_CN.ts | |
parent | 4c9e2a4376a52891a21f75e2a441848234ed93c2 (diff) | |
download | Qt-978416807b7e92d9317036cb4348ee172dde7d4e.zip Qt-978416807b7e92d9317036cb4348ee172dde7d4e.tar.gz Qt-978416807b7e92d9317036cb4348ee172dde7d4e.tar.bz2 |
Fix memory leak in QPixmap::toSymbianRSgImage() when an error occurs.
In the cases where an error occured while converting a QPixmap to a
VGImage this function would return without deleting the RSgImage
pointer that it created. Fix is to use a QScopedPointer instead. Also
don't use q_check_ptr() since this isn't a CBase derived class.
In case you are wondering why I didn't use a custom deleter here so
that Close() was also called, we need to make sure that Close() is
called on the RSgImage instance before calling Close() on the driver.
Reviewed-by: mread
Diffstat (limited to 'translations/qvfb_zh_CN.ts')
0 files changed, 0 insertions, 0 deletions