From 3688661b53002b22a362d0b72a0f7c8713251f77 Mon Sep 17 00:00:00 2001 From: "dbaron%dbaron.org" Date: Fri, 17 Dec 2004 20:36:28 +0000 Subject: [PATCH] Fix memory leak. b=266986 r+sr=bryner --- gfx/src/gtk/nsDeviceContextGTK.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gfx/src/gtk/nsDeviceContextGTK.cpp b/gfx/src/gtk/nsDeviceContextGTK.cpp index 29b1bfc3fc9e..9191b13db79e 100644 --- a/gfx/src/gtk/nsDeviceContextGTK.cpp +++ b/gfx/src/gtk/nsDeviceContextGTK.cpp @@ -1224,5 +1224,6 @@ xlfd_from_pango_font_description(GtkWidget *aWidget, g_free(subfont_charsets); } g_free(spec); + g_object_unref(font); } #endif /* MOZ_WIDGET_GTK2 && MOZ_ENABLE_COREXFONTS */