extensions/wtf-injector-firefox/lib/main.js
function releaseMemoryObserver() {
  // Only disable on last use.
  if (!memoryObservationCount) {
    return;
  }
  --memoryObservationCount;
  if (memoryObservationCount) {
    return;
  }

  // Unlisten for events.
  Services.obs.removeObserver(
      handleMemoryEvent, 'garbage-collection-statistics', false);

  // Reset memory notification to its original state.
  resetTemporaryPreference('javascript.options.mem.notify');
}
function releaseMemoryObserver() {
  // Only disable on last use.
  if (!memoryObservationCount) {
    return;
  }
  --memoryObservationCount;
  if (memoryObservationCount) {
    return;
  }

  // Unlisten for events.
  Services.obs.removeObserver(
      handleMemoryEvent, 'garbage-collection-statistics', false);

  // Reset memory notification to its original state.
  resetTemporaryPreference('javascript.options.mem.notify');
}
function releaseMemoryObserver ( ) { // Only disable on last use. if ( ! memoryObservationCount ) { return ; } -- memoryObservationCount ; if ( memoryObservationCount ) { return ; } // Unlisten for events. Services . obs . removeObserver ( handleMemoryEvent , 'garbage-collection-statistics' , false ) ; // Reset memory notification to its original state. resetTemporaryPreference ( 'javascript.options.mem.notify' ) ; }
Releases a reference to the memory observer, stopping it if this was the
last reference.
Releases a reference to the memory observer stopping it if this was the last reference .