From 03855ea1cef4f8d07439aa385b5a0bcf6e6f62ba Mon Sep 17 00:00:00 2001 From: "dbaron%fas.harvard.edu" Date: Wed, 8 Nov 2000 03:04:02 +0000 Subject: [PATCH] Fix leak of gViewManagers nsVoidArray. r=roc+moz@cs.cmu.edu sr=brendan@mozilla.org b=58965 --- view/src/nsViewManager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/view/src/nsViewManager.cpp b/view/src/nsViewManager.cpp index d5618ea7fe2..47ee1df5e45 100644 --- a/view/src/nsViewManager.cpp +++ b/view/src/nsViewManager.cpp @@ -417,6 +417,7 @@ nsViewManager::~nsViewManager() // release the global array of view managers NS_ASSERTION(gViewManagers != nsnull, "About to delete null gViewManagers"); + delete gViewManagers; gViewManagers = nsnull; // Cleanup all of the offscreen drawing surfaces if the last view manager