Mercurial > hg > dmlib
comparison tools/64vw.c @ 2102:e0281dae2cb8
Backed out changeset dcca36701cdd
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 07 Mar 2019 14:12:21 +0200 |
parents | 4276b8c0fef0 |
children | 2d0db1e6b4a7 |
comparison
equal
deleted
inserted
replaced
2101:da886b8cbb09 | 2102:e0281dae2cb8 |
---|---|
544 | 544 |
545 exit: | 545 exit: |
546 // Cleanup | 546 // Cleanup |
547 dmFree(optFilenames); | 547 dmFree(optFilenames); |
548 | 548 |
549 SDL_DestroyTexture(texture); | 549 if (texture != NULL) |
550 SDL_DestroyRenderer(renderer); | 550 SDL_DestroyTexture(texture); |
551 SDL_DestroyWindow(window); | 551 |
552 SDL_FreeSurface(surf); | 552 if (renderer != NULL) |
553 SDL_DestroyRenderer(renderer); | |
554 | |
555 if (window != NULL) | |
556 SDL_DestroyWindow(window); | |
557 | |
558 if (surf != NULL) | |
559 SDL_FreeSurface(surf); | |
553 | 560 |
554 if (initSDL) | 561 if (initSDL) |
555 SDL_Quit(); | 562 SDL_Quit(); |
556 | 563 |
557 return 0; | 564 return 0; |