diff --git a/src/main.cpp b/src/main.cpp index 010b81c..9a33ea9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -37,10 +37,10 @@ int main(int argc, char **argv) { GRRLIB_Render(); // Render the frame buffer to the TV } - - GRRLIB_Exit(); // Be a good boy, clear the memory allocated by GRRLIB GRRLIB_FreeTTF(global_data->myFont); free(global_data); + GRRLIB_Exit(); // Be a good boy, clear the memory allocated by GRRLIB + exit(0); // Use exit() to exit a program, do not use 'return' from main() } \ No newline at end of file