GWindow::~GWindow() deletes the main widget, assuming it was allocated with new; this is what all other applications do, so heap-allocate the terminal widget as well even though it's not necessary in this case.