summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Komissarov <ABBAPOH@gmail.com>2012-08-03 12:30:05 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-06-28 06:51:46 (GMT)
commit2873e0ef459228d324de88bb62836fd85fdafa52 (patch)
treee25a24869e1601719d37c8eea7a8d6a341b0e5af
parent8bc6cb2c03f91e81176a6ae96867a7c0b78fffcc (diff)
downloadQt-2873e0ef459228d324de88bb62836fd85fdafa52.zip
Qt-2873e0ef459228d324de88bb62836fd85fdafa52.tar.gz
Qt-2873e0ef459228d324de88bb62836fd85fdafa52.tar.bz2
Fix leak in QDragManager::drag on mac
Change-Id: I467129f989b6e28078c9dd789cde7ff898faf1f5 Reviewed-by: Christoph Schleifenbaum <christoph.schleifenbaum@kdab.com> Reviewed-by: Andy Shaw <andy.shaw@digia.com> Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
-rw-r--r--src/gui/kernel/qcocoaview_mac.mm1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gui/kernel/qcocoaview_mac.mm b/src/gui/kernel/qcocoaview_mac.mm
index 16247b5..d286763 100644
--- a/src/gui/kernel/qcocoaview_mac.mm
+++ b/src/gui/kernel/qcocoaview_mac.mm
@@ -1345,7 +1345,6 @@ Qt::DropAction QDragManager::drag(QDrag *o)
// Convert the image to NSImage:
NSImage *image = (NSImage *)qt_mac_create_nsimage(pix);
- [image retain];
DnDParams *dndParams = macCurrentDnDParameters();
QT_MANGLE_NAMESPACE(QCocoaView) *theView = static_cast<QT_MANGLE_NAMESPACE(QCocoaView) *>(dndParams->view);