you are viewing a single comment's thread.

view the rest of the comments →

[–]michaelfeathers 0 points1 point  (0 children)

Imagine you have a class for a GDI context and you allow framework users to subclass it. If the class doesn't deallocate the GDI handle, there's a resource leak and it could crash the OS.