mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Cleanups
This commit is contained in:
parent
b578ffb056
commit
cd578521e4
@ -41,9 +41,7 @@
|
|||||||
|
|
||||||
#include "../verbosity.h"
|
#include "../verbosity.h"
|
||||||
|
|
||||||
#ifndef MEASURE_FRAME_TIME_SAMPLES_COUNT
|
|
||||||
#define MEASURE_FRAME_TIME_SAMPLES_COUNT (2 * 1024)
|
#define MEASURE_FRAME_TIME_SAMPLES_COUNT (2 * 1024)
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef struct video_driver_state
|
typedef struct video_driver_state
|
||||||
{
|
{
|
||||||
@ -597,16 +595,7 @@ static bool init_video_pixel_converter(unsigned size)
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
if (video_driver_scaler_ptr)
|
deinit_pixel_converter();
|
||||||
{
|
|
||||||
if (video_driver_scaler_ptr->scaler_out)
|
|
||||||
free(video_driver_scaler_ptr->scaler_out);
|
|
||||||
if (video_driver_scaler_ptr->scaler)
|
|
||||||
free(video_driver_scaler_ptr->scaler);
|
|
||||||
|
|
||||||
free(video_driver_scaler_ptr);
|
|
||||||
video_driver_scaler_ptr = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user