code: public void free()
      {
          super.free(); // Do any inherited
          if (m_pDatabase != null)
          {
              this.close();
              m_pDatabase.removePDatabaseOwner(this, true);
          }
          m_pDatabase = null;
      }
docs: Free the objects.