B2G/gaia/apps/communications/contacts/js/importer_ui.js
// Release objects for improving memory management
Release objects for improving memory management
Release objects for improving memory management
function releaseObjs(cfdata) {
      if (!cfdata) {
        return;
      }
      selectedContacts[cfdata.uid] = null;
      myFriendsByUid[cfdata.uid] = null;
      selectableFriends[cfdata.uid] = null;
      myFriends[cfdata._idxFriendsArray] = null;
      if (cfdata.fbInfo && Array.isArray(cfdata.fbInfo.photo)) {
        cfdata.fbInfo.photo = null;
      }
    }
function releaseObjs ( cfdata ) { if ( ! cfdata ) { return ; } selectedContacts [ cfdata . uid ] = null ; myFriendsByUid [ cfdata . uid ] = null ; selectableFriends [ cfdata . uid ] = null ; myFriends [ cfdata . _idxFriendsArray ] = null ; if ( cfdata . fbInfo && Array . isArray ( cfdata . fbInfo . photo ) ) { cfdata . fbInfo . photo = null ; } }
Release objects for improving memory management
Release objects for improving memory management
// Once a Friend has been persisted the data is no longer needed