Or in my particular case a windows region (HRGN)?
Updated: The problems is the following:
I've a collection of objects, each of these objects can hold a HRGN. These region once acquired is released when the object is destroyed. Since some of those objects are stored in a std::vector I've to define an assignement operator.
Until now I've just assigned those HRGN, but that is a bug. If I duplicate such objects each one of those will try to delete the same region, and one of those wil be using a non existent region.