Exiting the Application

When a user dismisses it, an application is sent an SDL_QUIT event message. If the app does not exit within 1 second, it is terminated.

Your app should call PDL_Quit before calling SDL_Quit and exiting. PDL_Quit frees internal storage the PDL allocated for the app, shuts down the PDL, and performs other clean-up. After calling it, your app cannot safely invoke PDL calls.

Note:

Applications should not self-exit.