From 4a5a34ee4139c0839b637f3f8ab25c457c32fd19 Mon Sep 17 00:00:00 2001 From: "bruce%cybersight.com" Date: Tue, 4 Apr 2000 00:33:34 +0000 Subject: [PATCH] Fix for #34220. r=Pavlov --- gfx/src/gtk/nsRenderingContextGTK.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gfx/src/gtk/nsRenderingContextGTK.cpp b/gfx/src/gtk/nsRenderingContextGTK.cpp index 6f7df43824bc..7fb5b9459a6e 100644 --- a/gfx/src/gtk/nsRenderingContextGTK.cpp +++ b/gfx/src/gtk/nsRenderingContextGTK.cpp @@ -98,6 +98,10 @@ nsRenderingContextGTK::~nsRenderingContextGTK() if (nsnull != mDrawStringBuf) { delete [] mDrawStringBuf; } + + if (nsnull != mGC) { + gdk_gc_unref(mGC); + } }