"Evan Stade" estade@gmail.com writes:
In the native GDI+ passing uninitialized garbage to GdipDeletePen is not harmful.
That doesn't make the code correct. If you really want to pass garbage you have to do that explicitly with something like 0xdeadbeef; passing an uninitialized value to an API doesn't prove anything one way or another.