Commit a0a8556f authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

d3dx9/tests: Fix HFONT leaks.

parent 567ab59c
...@@ -4186,6 +4186,7 @@ error: ...@@ -4186,6 +4186,7 @@ error:
free_mesh(&mesh); free_mesh(&mesh);
if (d3dxmesh) d3dxmesh->lpVtbl->Release(d3dxmesh); if (d3dxmesh) d3dxmesh->lpVtbl->Release(d3dxmesh);
if (font) DeleteObject(font);
HeapFree(GetProcessHeap(), 0, glyphmetrics_float); HeapFree(GetProcessHeap(), 0, glyphmetrics_float);
if (glyphs) if (glyphs)
...@@ -4295,6 +4296,7 @@ if (0) ...@@ -4295,6 +4296,7 @@ if (0)
test_createtext(device, hdc, "wi ne", 1.0f, 0.0f); test_createtext(device, hdc, "wi ne", 1.0f, 0.0f);
DeleteDC(hdc); DeleteDC(hdc);
DeleteObject(hFont);
free_test_context(test_context); free_test_context(test_context);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment