gdiplus: Fix a memory leak in the tests.
Found by Valgrind.
This commit is contained in:
parent
b18cc9f680
commit
70742d5e5a
|
@ -193,6 +193,7 @@ todo_wine
|
||||||
{
|
{
|
||||||
stat = GdipCreateFontFamilyFromName (MSSansSerif, NULL, &family);
|
stat = GdipCreateFontFamilyFromName (MSSansSerif, NULL, &family);
|
||||||
expect (FontFamilyNotFound, stat);
|
expect (FontFamilyNotFound, stat);
|
||||||
|
if(stat == Ok) GdipDeleteFontFamily(family);
|
||||||
}
|
}
|
||||||
|
|
||||||
stat = GdipCreateFontFamilyFromName (arial, NULL, &family);
|
stat = GdipCreateFontFamilyFromName (arial, NULL, &family);
|
||||||
|
|
Loading…
Reference in New Issue