imxtools: add const and set pointer to NULL on free to avoid double free

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30918 a1c6a512-1295-4272-9138-f99709370657
2 files changed