Stephen Vick has written a nice simple article on automating SPDisposeCheck in your Visual Studio projects.