Graphics: plug memory/resource leak in picopng

Thanks to cppcheck 1.65