[ros-diffs] [khornicek] 55562: [WIN32K] Fix a potential memory leak. Spotted by Samuel Serapion.

khornicek at svn.reactos.org khornicek at svn.reactos.org
Sun Feb 12 14:40:25 UTC 2012


Author: khornicek
Date: Sun Feb 12 14:40:25 2012
New Revision: 55562

URL: http://svn.reactos.org/svn/reactos?rev=55562&view=rev
Log:
[WIN32K]
Fix a potential memory leak. Spotted by Samuel Serapion.

Modified:
    trunk/reactos/subsystems/win32/win32k/objects/freetype.c

Modified: trunk/reactos/subsystems/win32/win32k/objects/freetype.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/objects/freetype.c?rev=55562&r1=55561&r2=55562&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/freetype.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/freetype.c [iso-8859-1] Sun Feb 12 14:40:25 2012
@@ -1349,6 +1349,7 @@
     error = FT_Glyph_To_Bitmap(&GlyphCopy, RenderMode, 0, 1);
     if (error)
     {
+        FT_Done_Glyph(GlyphCopy);
         DPRINT1("Failure rendering glyph.\n");
         return NULL;
     };




More information about the Ros-diffs mailing list