Listing 5. Destroying the off-screen bitmap buffer.
//Block and wait until the user presses a key. readkey(); //Destroy bitmap to avoid memory leaks. destroy_bitmap(buffer); return 0;//Return 0 to indicate a successful run.... }//end main function END_OF_MAIN |