core/res: cleanup