From 84a9152e955cb07cde9bc04000c509da6fdb92ad Mon Sep 17 00:00:00 2001 From: "bryner%netscape.com" Date: Thu, 14 Feb 2002 06:44:30 +0000 Subject: [PATCH] Bug 124817 -- leaking splash screen pixmap on startup. r=pavlov, sr=blizzard. --- xpfe/bootstrap/nsNativeAppSupportGtk.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xpfe/bootstrap/nsNativeAppSupportGtk.cpp b/xpfe/bootstrap/nsNativeAppSupportGtk.cpp index e384032ea81..b33c6601521 100644 --- a/xpfe/bootstrap/nsNativeAppSupportGtk.cpp +++ b/xpfe/bootstrap/nsNativeAppSupportGtk.cpp @@ -86,6 +86,8 @@ NS_IMETHODIMP nsSplashScreenGtk::Show() mDialog = gdk_window_new(NULL, &attr, GDK_WA_X | GDK_WA_Y); gdk_window_set_back_pixmap(mDialog, pmap, FALSE); + gdk_pixmap_unref(pmap); + gdk_window_show(mDialog); return NS_OK;