mirror of
https://github.com/libretro/RetroArch
synced 2025-02-21 00:40:09 +00:00
Revert "Create png_reverse_filter_deinit"
This reverts commit ef09b9a855438bf5669322a7f104a2050265b4c5.
This commit is contained in:
parent
c6f34ff91e
commit
141a417e11
@ -89,14 +89,6 @@ static void deinterlace_pass(uint32_t *data, const struct png_ihdr *ihdr,
|
||||
}
|
||||
}
|
||||
|
||||
static void png_reverse_filter_deinit(struct rpng_process_t *pngp)
|
||||
{
|
||||
if (pngp->decoded_scanline)
|
||||
free(pngp->decoded_scanline);
|
||||
if (pngp->prev_scanline)
|
||||
free(pngp->prev_scanline);
|
||||
}
|
||||
|
||||
static bool png_reverse_filter_init(uint32_t *data, const struct png_ihdr *ihdr,
|
||||
struct rpng_process_t *pngp)
|
||||
{
|
||||
@ -113,7 +105,8 @@ static bool png_reverse_filter_init(uint32_t *data, const struct png_ihdr *ihdr,
|
||||
|
||||
if (!pngp->prev_scanline || !pngp->decoded_scanline)
|
||||
{
|
||||
png_reverse_filter_deinit(pngp);
|
||||
free(pngp->decoded_scanline);
|
||||
free(pngp->prev_scanline);
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -193,7 +186,10 @@ static bool png_reverse_filter(uint32_t *data, const struct png_ihdr *ihdr,
|
||||
}
|
||||
|
||||
end:
|
||||
png_reverse_filter_deinit(pngp);
|
||||
if (pngp->decoded_scanline)
|
||||
free(pngp->decoded_scanline);
|
||||
if (pngp->prev_scanline)
|
||||
free(pngp->prev_scanline);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user