Mercurial > repos > blastem
comparison render_sdl.c @ 2303:c79896ff1a2d
Fix leak in render_save_video
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 15 Mar 2023 18:49:47 -0700 |
parents | eb45ad9d8a3f |
children | b7768c58f0da |
comparison
equal
deleted
inserted
replaced
2295:eb45ad9d8a3f | 2303:c79896ff1a2d |
---|---|
1394 printf("Saving video to %s\n", path); | 1394 printf("Saving video to %s\n", path); |
1395 } else { | 1395 } else { |
1396 warning("Failed to open %s for writing\n", path); | 1396 warning("Failed to open %s for writing\n", path); |
1397 } | 1397 } |
1398 #endif | 1398 #endif |
1399 free(path); | |
1399 } | 1400 } |
1400 | 1401 |
1401 uint8_t render_create_window(char *caption, uint32_t width, uint32_t height, window_close_handler close_handler) | 1402 uint8_t render_create_window(char *caption, uint32_t width, uint32_t height, window_close_handler close_handler) |
1402 { | 1403 { |
1403 uint8_t win_idx = 0xFF; | 1404 uint8_t win_idx = 0xFF; |