Fix bug 944409 - Event dialog leaks its document due to the minmonth. r=mmecca
authorPhilipp Kewisch <mozilla@kewis.ch>
Wed, 04 Dec 2013 15:22:10 +0100
changeset 16957 3263b32ea94d3e0be6616c90543600f979da8f81
parent 16956 54aa8f1134fec134e7a45bf1495b5957bd751a30
child 16958 c0db437395e86bbd0e63cb26713f1b635cd7ea55
push id1074
push userbugzilla@standard8.plus.com
push dateMon, 03 Feb 2014 22:47:23 +0000
treeherdercomm-beta@6b791b5369ed [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmmecca
bugs944409
Fix bug 944409 - Event dialog leaks its document due to the minmonth. r=mmecca
calendar/base/content/widgets/minimonth.xml
--- a/calendar/base/content/widgets/minimonth.xml
+++ b/calendar/base/content/widgets/minimonth.xml
@@ -433,18 +433,17 @@
 
           // Add pref observer for calendar.week.start
           let branch = Services.prefs.getBranch("");
           branch.addObserver("calendar.week.start", this, false);
       ]]></constructor>
       <destructor><![CDATA[
           Components.utils.import("resource://gre/modules/Services.jsm");
 
-          var composite = getCompositeCalendar();
-          if (composite && this.mObservesComposite == true) {
+          if (this.mObservesComposite == true) {
               getCompositeCalendar().removeObserver(this);
           }
 
           // Remove pref observer for calendar.week.start
           let branch = Services.prefs.getBranch("");
           branch.removeObserver("calendar.week.start", this, false);
       ]]></destructor>