I guess you mean that GameStateTitle() is leaked if credits fails to load ?

just add title variable and delete if it fails to load.