callocAllFree method

void callocAllFree()

Implementation

void callocAllFree() {
  if (ref.title != nullptr) {
    ref.title.callocFree();
  }
  if (ref.message != nullptr) {
    ref.message.callocFree();
  }
  for (var i = 0; i < ref.numbuttons; i++) {
    final buttonPointer = ref.buttons + i;
    if (buttonPointer.ref.text != nullptr) {
      buttonPointer.ref.text.callocFree();
    }
  }
  if (ref.colorScheme != nullptr) {
    ref.colorScheme.callocFree();
  }
  callocFree();
}