searchengine/oss/cl/clucene/src/clucene/store/indexoutput.cpp
changeset 24 65456528cac2
parent 0 671dee74050a
equal deleted inserted replaced
23:d4d56f5e7c55 24:65456528cac2
    25     bufferPosition = 0;
    25     bufferPosition = 0;
    26   }
    26   }
    27 
    27 
    28   BufferedIndexOutput::~BufferedIndexOutput(){
    28   BufferedIndexOutput::~BufferedIndexOutput(){
    29   	if ( buffer != NULL )
    29   	if ( buffer != NULL )
    30   		close();
    30   	    {
       
    31             _CLDELETE_ARRAY( buffer );
       
    32     
       
    33             bufferStart = 0;
       
    34             bufferPosition = 0;
       
    35   	    }
       
    36 
    31   }
    37   }
    32 
    38 
    33   void BufferedIndexOutput::close(){
    39   void BufferedIndexOutput::close(){
    34     flush();
    40     flush();
    35     _CLDELETE_ARRAY( buffer );
    41     _CLDELETE_ARRAY( buffer );