From 5a9807ee6cbab24f6fa9a2b7c892d586697f8ef2 Mon Sep 17 00:00:00 2001 From: Ged Murphy Date: Wed, 9 Jul 2008 14:20:08 +0000 Subject: [PATCH] don't try to free a NULL object. patch by hto (hto at dev dot null) See issue #3486 for more details. svn path=/trunk/; revision=34393 --- reactos/subsystems/win32/win32k/objects/text.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/subsystems/win32/win32k/objects/text.c b/reactos/subsystems/win32/win32k/objects/text.c index a5ba4e6a26d..3e94ce25b49 100644 --- a/reactos/subsystems/win32/win32k/objects/text.c +++ b/reactos/subsystems/win32/win32k/objects/text.c @@ -2085,7 +2085,8 @@ fail: EngDeleteXlate(XlateObj); if(TextObj != NULL) TEXTOBJ_UnlockText(TextObj); - BITMAPOBJ_UnlockBitmap(BitmapObj); + if (BitmapObj != NULL) + BITMAPOBJ_UnlockBitmap(BitmapObj); if (hBrushBg != NULL) { BRUSHOBJ_UnlockBrush(BrushBg);