rpng.c - cleanup