Fix leak bug 324969 -- make sure to call virtual destructors.

git-svn-id: svn://10.0.0.236/trunk@188434 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2006-01-29 18:48:58 +00:00
parent f6291f829d
commit fb8579f413
25 changed files with 421 additions and 48 deletions

View File

@@ -2124,9 +2124,19 @@ nsComboboxControlFrame::UpdateRecentIndex(PRInt32 aIndex)
return index;
}
MOZ_DECL_CTOR_COUNTER(nsDisplayComboboxFocus)
class nsDisplayComboboxFocus : public nsDisplayItem {
public:
nsDisplayComboboxFocus(nsComboboxControlFrame* aFrame) : mFrame(aFrame) {}
nsDisplayComboboxFocus(nsComboboxControlFrame* aFrame)
: mFrame(aFrame) {
MOZ_COUNT_CTOR(nsDisplayComboboxFocus);
}
#ifdef NS_BUILD_REFCNT_LOGGING
virtual ~nsDisplayComboboxFocus() {
MOZ_COUNT_DTOR(nsDisplayComboboxFocus);
}
#endif
virtual nsIFrame* GetUnderlyingFrame() { return mFrame; }
virtual void Paint(nsDisplayListBuilder* aBuilder, nsIRenderingContext* aCtx,
const nsRect& aDirtyRect);