Yep. Pein is right. You can also set it to do it whenever you quit firefox.
Go to the menu bar and then click on Tools and then Options. Click on the Privacy tab and then ask it to "Always clear my private data when I close firefox". Under settings you can tell choose which of the data it habitually deletes.