Marcus Meissner : dplayx: Remove wrong HeapFree (Coverity).

Alexandre Julliard julliard at winehq.org
Thu May 9 15:08:30 CDT 2013


Module: wine
Branch: master
Commit: cef28ff30cca633f27bb599c926424f89fb9637e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cef28ff30cca633f27bb599c926424f89fb9637e

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Thu May  9 13:19:50 2013 +0200

dplayx: Remove wrong HeapFree (Coverity).

---

 dlls/dplayx/dplaysp.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/dlls/dplayx/dplaysp.c b/dlls/dplayx/dplaysp.c
index 9a70901..899348e 100644
--- a/dlls/dplayx/dplaysp.c
+++ b/dlls/dplayx/dplaysp.c
@@ -384,13 +384,11 @@ static HRESULT WINAPI IDirectPlaySPImpl_GetSPPlayerData
   /* What to do in the case where there is nothing set yet? */
   if( dwFlags == DPSET_LOCAL )
   {
-    HeapFree( GetProcessHeap(), 0, lpPlayerData->lpPlayerLocalData );
     *lplpData     = lpPlayerData->lpPlayerLocalData;
     *lpdwDataSize = lpPlayerData->dwPlayerLocalDataSize;
   }
   else if( dwFlags == DPSET_REMOTE )
   {
-    HeapFree( GetProcessHeap(), 0, lpPlayerData->lpPlayerRemoteData );
     *lplpData     = lpPlayerData->lpPlayerRemoteData;
     *lpdwDataSize = lpPlayerData->dwPlayerRemoteDataSize;
   }




More information about the wine-cvs mailing list