A good thing to do is to block any kind of scripts while you are surfing using the Tor-bundle. Don't forget to keep your software up to date!
A better solution if you don't want to replace windows is setting up a virtual machine for example that runs Tails. The advantage of this is that it is isolated from your primary system.
Regarding your question you can't protect yourself from this kind of attacks! You can't protect yourself against 0-Day exploits:
13:50 Tor Browser Bundle users who installed or manually updated after June 26 are safe from the exploit, according to the Tor Project’s new security advisory on the hack.
The only thing you can do is update the software on a regular basis or audit the software that you are using by yourself to make sure its secure.