Bug 679196 - Mem leak when preferred effect is set for drag and drop; r=neil

This commit is contained in:
Brian R. Bondy 2011-09-12 17:52:37 -04:00
parent a91e81a677
commit 2c26a7a9aa

View File

@ -280,6 +280,8 @@ nsNativeDragTarget::DragEnter(LPDATAOBJECT pIDataSource,
// Mask effect coming from function call with effect preferred by the source.
mMovePreferred = (preferredEffect & DROPEFFECT_MOVE) != 0;
nsMemory::Free(tempOutData);
} else {
mMovePreferred = PR_FALSE;
}