static void FreeResult(GPtrArray* array)
{
  if (array) {
    FreeElements(array);
    g_ptr_array_free(array, TRUE);
  }
}
Esempio n. 2
0
//==========================================================================
// Class:			Matrix
// Function:		Resize
//
// Description:		Resizes the dynamic memory for this object to accommodate
//					the specified size.
//
// Input Arguments:
//		_rows		= const unsigned int& specifying new vertical dimension
//		_columns	= const unsigned int& specifying new horizontal dimension
//
// Output Arguments:
//		None
//
// Return Value:
//		None
//
//==========================================================================
void Matrix::Resize(const unsigned int &_rows, const unsigned int &_columns)
{
	FreeElements();

	rows = _rows;
	columns = _columns;

	AllocateElements();
}
static void ClearResult(GPtrArray* array)
{
  FreeElements(array);
  g_ptr_array_set_size(array, 0);
}
Esempio n. 4
0
//==========================================================================
// Class:			Matrix
// Function:		~Matrix
//
// Description:		Destructor for the Matrix class.
//
// Input Arguments:
//		None
//
// Output Arguments:
//		None
//
// Return Value:
//		None
//
//==========================================================================
Matrix::~Matrix()
{
	FreeElements();
}