This commit is contained in:
twinaphex 2016-02-08 00:23:03 +01:00
parent b578ffb056
commit cd578521e4

View File

@ -41,9 +41,7 @@
#include "../verbosity.h"
#ifndef MEASURE_FRAME_TIME_SAMPLES_COUNT
#define MEASURE_FRAME_TIME_SAMPLES_COUNT (2 * 1024)
#endif
typedef struct video_driver_state
{
@ -597,16 +595,7 @@ static bool init_video_pixel_converter(unsigned size)
return true;
error:
if (video_driver_scaler_ptr)
{
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;
}
deinit_pixel_converter();
return false;
}