public void free ( ) { Record recUserRegistration = ( Record ) m_systemRecordOwner . getRecord ( UserRegistrationModel . USER_REGISTRATION_FILE ) ; if ( recUserRegistration != null ) { for ( UserProperties regKey : m_htRegistration . values ( ) ) { regKey . free ( ) ; // Remove yourself } recUserRegistration . free ( ) ; recUserRegistration = null ; } Record recUserInfo = ( Record ) this . getUserInfo ( ) ; if ( recUserInfo != null ) { if ( recUserInfo . isModified ( false ) ) { try { if ( recUserInfo . getEditMode ( ) == Constants . EDIT_ADD ) recUserInfo . add ( ) ; else recUserInfo . set ( ) ; } catch ( DBException ex ) { ex . printStackTrace ( ) ; } } recUserInfo . free ( ) ; recUserInfo = null ; } super . free ( ) ; }
Release the user s preferences .