fix PP_RESOURCE_VIEW leakage