Bug 468761 - test_placesTxn.js leaks due to observer, r=dietrich
authorMarco Bonardo <mak77@bonardo.net>
Sat, 13 Dec 2008 10:57:30 +0100
changeset 22758 7878ba715f644dd92b7b07d683e4cfe2157183ff
parent 22757 8ba9bd671a74dfaf5dcedaa100ba872f19887e9f
child 22759 877791aa47495baeff3edc04b340d09a970fb103
push id4151
push usermak77@bonardo.net
push dateSat, 13 Dec 2008 09:59:43 +0000
treeherdermozilla-central@ad710c32b0e9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdietrich
bugs468761
milestone1.9.2a1pre
Bug 468761 - test_placesTxn.js leaks due to observer, r=dietrich
browser/components/places/tests/unit/test_placesTxn.js
--- a/browser/components/places/tests/unit/test_placesTxn.js
+++ b/browser/components/places/tests/unit/test_placesTxn.js
@@ -666,9 +666,11 @@ function run_test() {
   do_check_eq(bmsvc.getFolderIdForItem(newBkmk3_1Id), newBkmk3Id);
   do_check_eq(bmsvc.getItemType(newBkmk3_1Id), bmsvc.TYPE_BOOKMARK);
   do_check_eq(bmsvc.getBookmarkURI(newBkmk3_1Id).spec, "http://www.mozilla.org/");
   do_check_eq(bmsvc.getFolderIdForItem(newBkmk3_2Id), newBkmk3Id);
   do_check_eq(bmsvc.getItemType(newBkmk3_2Id), bmsvc.TYPE_SEPARATOR);
   do_check_eq(bmsvc.getFolderIdForItem(newBkmk3_3Id), newBkmk3Id);
   do_check_eq(bmsvc.getItemType(newBkmk3_3Id), bmsvc.TYPE_FOLDER);
   do_check_eq(bmsvc.getItemTitle(newBkmk3_3Id), "folder");
+
+  bmsvc.removeObserver(observer, false);
 }