I believe the term was a component of ThoughtCrime called Crimethink.
Not to parse definitions but I believe you are referring to “Crimestop”
“Crimestop” means to rid oneself of unwanted thoughts, i.e., thoughts that interfere with the ideology of the Party. This way, a person avoids committing thoughtcrime.”
LOL...of course...my Newspeak is rusty. Probably one of the outdated versions...:)