In using SetDIBits to assign an array of bitmap bits to an bitmap, is the array of bitmap bits automatically destructed when the bitmap is destructed or do both have to be destructed separately?

I can't find any documentation on this and I have seen it done both ways in examples on CodeGuru.

My Memory Validator program is happy when I destruct both separately and says there is a memory link if I only destruct the bitmap but I want to make sure.