From 62d559f901af27df70c53af134e9db0c1cf18416 Mon Sep 17 00:00:00 2001 From: "erik%netscape.com" Date: Thu, 21 Sep 2000 21:46:47 +0000 Subject: [PATCH] bug 53585 and bug 53569; fixing a leak; r/a=brendan; a=granrose --- gfx/src/gtk/nsFontMetricsGTK.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gfx/src/gtk/nsFontMetricsGTK.cpp b/gfx/src/gtk/nsFontMetricsGTK.cpp index 71157d01a38..a4fccfc5e5d 100644 --- a/gfx/src/gtk/nsFontMetricsGTK.cpp +++ b/gfx/src/gtk/nsFontMetricsGTK.cpp @@ -1395,8 +1395,9 @@ CheckMap(nsFontCharSetMap* aEntry) nsCOMPtr charset = getter_AddRefs(NS_NewAtom(aEntry->mInfo->mCharSet)); if (charset) { - nsIUnicodeEncoder* converter = nsnull; - res = gCharSetManager->GetUnicodeEncoder(charset, &converter); + nsCOMPtr converter; + res = gCharSetManager->GetUnicodeEncoder(charset, + getter_AddRefs(converter)); if (NS_FAILED(res)) { printf("=== %s failed (%s)\n", aEntry->mInfo->mCharSet, __FILE__); }