equal
deleted
inserted
replaced
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 ); |