Not a memory leak problem that I know of.
In the 2 examples given, the first is using Early binding and as such VB's IntelliSense functions will help you in writing your code. This is the preferable method to use.
The second is late binding, and the object<var> is nothing more than a space holder in memory for something(VB has no idea what it is until you tell it). As such, it is harder to program to and certainly harder for someone else to read/debug/refine your code.
HTH
Michael