Author: tkreuzer
Date: Fri Aug 18 15:02:05 2017
New Revision: 75613
URL:
http://svn.reactos.org/svn/reactos?rev=75613&view=rev
Log:
[FTFD] Ignore NULL objects in free() wrapper
Modified:
trunk/reactos/win32ss/drivers/font/ftfd/rosglue.c
Modified: trunk/reactos/win32ss/drivers/font/ftfd/rosglue.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/drivers/font/ftfd/…
==============================================================================
--- trunk/reactos/win32ss/drivers/font/ftfd/rosglue.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/drivers/font/ftfd/rosglue.c [iso-8859-1] Fri Aug 18 15:02:05
2017
@@ -79,7 +79,10 @@
void
free(void *Object)
{
- EngFreeMem((size_t *)Object - 1);
+ if (Object != NULL)
+ {
+ EngFreeMem((size_t *)Object - 1);
+ }
}
/*