pngdec: match g_malloc() with g_free()

Matching g_malloc() with a g_free() is important when a custom allocator is
installed.
Fixes #583803
1 file changed