The addon calls the constructor and Delete. guilib internally may call CGUIRenderingControl::FreeResources which call stop here. The ref count keeps the object alive until the addon delete it.
Yes, if the addon does not release, there's a mem leak. But the same applies for AddonWindow.