From 4d6d17026a33489d72f459351f694a2e53167c38 Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Fri, 18 Dec 2009 10:51:36 +0000 Subject: Shut down fontconfig in test_shell to lower the amount of memory leaked in fontconfig. The remaining leaks are due to static variables in pango holding references to fontconfig data structures. These should go away for a more up to date version of pango. BUG=9245 TEST=Run test_shell using valgrind. Memory leaks related to fontconfig should drop from around 138079 bytes to around 24573 bytes Patch by Jochen Eisinger . Review URL: http://codereview.chromium.org/507038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34945 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/tools/test_shell/test_shell_gtk.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/webkit/tools/test_shell/test_shell_gtk.cc b/webkit/tools/test_shell/test_shell_gtk.cc index 52b9362..e4a2c34 100644 --- a/webkit/tools/test_shell/test_shell_gtk.cc +++ b/webkit/tools/test_shell/test_shell_gtk.cc @@ -314,6 +314,7 @@ void TestShell::PlatformCleanUp() { reinterpret_cast(MainWindowDestroyed), this); gtk_widget_destroy(GTK_WIDGET(m_mainWnd)); } + FcFini(); } bool TestShell::Initialize(const GURL& starting_url) { -- cgit v1.1