projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4302a3
)
don't try to free a NULL object.
author
Ged Murphy
<gedmurphy@reactos.org>
Wed, 9 Jul 2008 14:20:08 +0000
(14:20 +0000)
committer
Ged Murphy
<gedmurphy@reactos.org>
Wed, 9 Jul 2008 14:20:08 +0000
(14:20 +0000)
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
patch
|
blob
|
history
diff --git
a/reactos/subsystems/win32/win32k/objects/text.c
b/reactos/subsystems/win32/win32k/objects/text.c
index
a5ba4e6
..
3e94ce2
100644
(file)
--- 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);