From b25232b0f891ad08cbe7ce62450aa2cf73471ac0 Mon Sep 17 00:00:00 2001 From: Justin Lebar Date: Wed, 31 Oct 2012 13:30:35 -0400 Subject: [PATCH] Bug 803688 - Re-land backed out part of bug 803688 now that we have bug 805207 fixed. This changeset reverts the partial-backout cset 5c82f5a5e90d, taking us back to the state we were in at bug 803688's initial landing, rev 592c3465a742. --- mfbt/LinkedList.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mfbt/LinkedList.h b/mfbt/LinkedList.h index b9d92d27210..4d541c90521 100644 --- a/mfbt/LinkedList.h +++ b/mfbt/LinkedList.h @@ -254,6 +254,10 @@ class LinkedList public: LinkedList() : sentinel(LinkedListElement::NODE_KIND_SENTINEL) { } + ~LinkedList() { + MOZ_ASSERT(isEmpty()); + } + /* * Add elem to the front of the list. */