[ros-diffs] [tkreuzer] 47611: [WIN32K] Once again: Do not free the memory for the bitmap bits, when you have not allocated them.

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Sun Jun 6 08:32:02 CEST 2010


Author: tkreuzer
Date: Sun Jun  6 08:32:01 2010
New Revision: 47611

URL: http://svn.reactos.org/svn/reactos?rev=47611&view=rev
Log:
[WIN32K]
Once again: Do not free the memory for the bitmap bits, when you have not allocated them.

Modified:
    branches/reactos-yarotows/subsystems/win32/win32k/eng/alphablend.c

Modified: branches/reactos-yarotows/subsystems/win32/win32k/eng/alphablend.c
URL: http://svn.reactos.org/svn/reactos/branches/reactos-yarotows/subsystems/win32/win32k/eng/alphablend.c?rev=47611&r1=47610&r2=47611&view=diff
==============================================================================
--- branches/reactos-yarotows/subsystems/win32/win32k/eng/alphablend.c [iso-8859-1] (original)
+++ branches/reactos-yarotows/subsystems/win32/win32k/eng/alphablend.c [iso-8859-1] Sun Jun  6 08:32:01 2010
@@ -144,7 +144,6 @@
                            NULL, NULL, NULL, ROP3_TO_ROP4(SRCCOPY)))
         {
             DPRINT1("EngStretchBlt failed!\n");
-            EngFreeMem(SourceStretchedObj->pvBits);
             EngUnlockSurface(SourceStretchedObj);
             EngDeleteSurface((HSURF)SourceStretchedBitmap);
             return FALSE;
@@ -161,7 +160,6 @@
     {
         if (SourceStretchedObj != NULL)
         {
-            EngFreeMem(SourceStretchedObj->pvBits);
             EngUnlockSurface(SourceStretchedObj);
         }
         if (SourceStretchedBitmap != 0)
@@ -180,7 +178,6 @@
         IntEngLeave(&EnterLeaveSource);
         if (SourceStretchedObj != NULL)
         {
-            EngFreeMem(SourceStretchedObj->pvBits);
             EngUnlockSurface(SourceStretchedObj);
         }
         if (SourceStretchedBitmap != 0)
@@ -258,7 +255,6 @@
 
     if (SourceStretchedObj != NULL)
     {
-        EngFreeMem(SourceStretchedObj->pvBits);
         EngUnlockSurface(SourceStretchedObj);
     }
     if (SourceStretchedBitmap != 0)




More information about the Ros-diffs mailing list