icube
icube

Reputation: 2808

Clean up a collection of BitmapSource

i have a collection of BitmapSource that are created by setting its StreamSource property to a MemoryStream of byte array. How do i remove them from memory after using them?

thanks!

Upvotes: 0

Views: 424

Answers (1)

Thomas Levesque
Thomas Levesque

Reputation: 292465

Just clear your references to them, the garbage collector will take care of reclaiming the memory.

Upvotes: 2

Related Questions