r8841 MarkieB - in /branches/MarkieB/windows/windows: font.c plot.c

netsurf at semichrome.net netsurf at semichrome.net
Tue Jul 28 10:30:31 BST 2009


Author: MarkieB
Date: Tue Jul 28 04:30:30 2009
New Revision: 8841

URL: http://source.netsurf-browser.org?rev=8841&view=rev
Log:
found hopefully the last gdi object / font leak; massive stability improvement

Modified:
    branches/MarkieB/windows/windows/font.c
    branches/MarkieB/windows/windows/plot.c

Modified: branches/MarkieB/windows/windows/font.c
URL: http://source.netsurf-browser.org/branches/MarkieB/windows/windows/font.c?rev=8841&r1=8840&r2=8841&view=diff
==============================================================================
--- branches/MarkieB/windows/windows/font.c (original)
+++ branches/MarkieB/windows/windows/font.c Tue Jul 28 04:30:30 2009
@@ -108,6 +108,7 @@
 				utf8_bounded_length(string, length), &s);
 		*width = s.cx;
 		font = SelectObject(hdc, fontbak);
+		DeleteObject(font);
 		ReleaseDC(NULL, hdc);
 		return true;
 	}

Modified: branches/MarkieB/windows/windows/plot.c
URL: http://source.netsurf-browser.org/branches/MarkieB/windows/windows/plot.c?rev=8841&r1=8840&r2=8841&view=diff
==============================================================================
--- branches/MarkieB/windows/windows/plot.c (original)
+++ branches/MarkieB/windows/windows/plot.c Tue Jul 28 04:30:30 2009
@@ -213,7 +213,7 @@
 	LOG(("words %s at %d,%d", text, x, y));
 #endif
 	HDC hdc = GetDC(current_hwnd);
-	HFONT font = get_font(style), fontbak;
+	HFONT fontbak, font = get_font(style);
 	int wlen;
 	SIZE s;
 	LPWSTR wstring;




More information about the netsurf-commits mailing list