Mercurial > hg > dmlib
comparison tools/64vw.c @ 2089:dcca36701cdd
Cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 19 Feb 2019 12:18:12 +0200 |
parents | 1ad8382e3670 |
children | 4276b8c0fef0 |
comparison
equal
deleted
inserted
replaced
2088:e900e6e2593d | 2089:dcca36701cdd |
---|---|
542 | 542 |
543 exit: | 543 exit: |
544 // Cleanup | 544 // Cleanup |
545 dmFree(optFilenames); | 545 dmFree(optFilenames); |
546 | 546 |
547 if (texture != NULL) | 547 SDL_DestroyTexture(texture); |
548 SDL_DestroyTexture(texture); | 548 SDL_DestroyRenderer(renderer); |
549 | 549 SDL_DestroyWindow(window); |
550 if (renderer != NULL) | 550 SDL_FreeSurface(surf); |
551 SDL_DestroyRenderer(renderer); | |
552 | |
553 if (window != NULL) | |
554 SDL_DestroyWindow(window); | |
555 | |
556 if (surf != NULL) | |
557 SDL_FreeSurface(surf); | |
558 | 551 |
559 if (initSDL) | 552 if (initSDL) |
560 SDL_Quit(); | 553 SDL_Quit(); |
561 | 554 |
562 return 0; | 555 return 0; |