fixes double free crash on GLProgramStateCache