fix another memory leak.

git-svn-id: svn://10.0.0.236/trunk@24156 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pavlov%pavlov.net
1999-03-15 03:03:49 +00:00
parent 1e9c573bb0
commit ca80f65092

View File

@@ -46,6 +46,7 @@ nsWidget::nsWidget()
if (NS_OK == nsComponentManager::CreateInstance(kLookAndFeelCID, nsnull, kILookAndFeelIID, (void**)&lookAndFeel)) {
lookAndFeel->GetColor(nsILookAndFeel::eColor_WindowBackground, mBackground);
}
NS_RELEASE(lookAndFeel);
mWidget = nsnull;
mParent = nsnull;
mPreferredWidth = 0;