If i have a class with a global object in it, is this object destroyed when the class instance is destroyed?