Logo Search packages:      
Sourcecode: iterm version File versions  Download package

void VTScreenBuffer_destroy ( VTScreenBuffer buf  ) 

Destructor of buffer object.

Parameters:
*buf reference to Buffer object to destruct rows, and columns will be recursively destructed.

Definition at line 68 of file screen_buffer.c.

References _VTScreenBuf::num_rows, and _VTScreenBuf::rows.

{
  if(buf)
  {
    int i;
    for(i=0;i<buf->num_rows;i++)
        Row_destroy(buf->rows[i]);

    if(buf->rows)
        free(buf->rows);
    free(buf);
  }
}


Generated by  Doxygen 1.6.0   Back to index