Author: gedmurphy
Date: Wed Jul 9 09:20:08 2008
New Revision: 34393
URL:
http://svn.reactos.org/svn/reactos?rev=34393&view=rev
Log:
don't try to free a NULL object.
patch by hto (hto at dev dot null)
See issue #3486 for more details.
Modified:
trunk/reactos/subsystems/win32/win32k/objects/text.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/text.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/text.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/text.c [iso-8859-1] Wed Jul 9 09:20:08
2008
@@ -2085,7 +2085,8 @@
EngDeleteXlate(XlateObj);
if(TextObj != NULL)
TEXTOBJ_UnlockText(TextObj);
- BITMAPOBJ_UnlockBitmap(BitmapObj);
+ if (BitmapObj != NULL)
+ BITMAPOBJ_UnlockBitmap(BitmapObj);
if (hBrushBg != NULL)
{
BRUSHOBJ_UnlockBrush(BrushBg);