diff --git a/widget/src/gtk/nsToolkit.cpp b/widget/src/gtk/nsToolkit.cpp index 0f5fc68f4bc..7ce3900d9b2 100644 --- a/widget/src/gtk/nsToolkit.cpp +++ b/widget/src/gtk/nsToolkit.cpp @@ -47,8 +47,10 @@ nsToolkit::nsToolkit() //------------------------------------------------------------------------- nsToolkit::~nsToolkit() { - if (mSharedGC) + if (mSharedGC) { gdk_gc_unref(mSharedGC); + gdk_gc_destroy(mSharedGC); + } // Remove the TLS reference to the toolkit... PR_SetThreadPrivate(gToolkitTLSIndex, nsnull);