From fdda2ae7b6e1e9b83b9e4d3f7c1fbeda8bd94029 Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 9 Jul 2001 23:05:13 +0000 Subject: [PATCH] prevent circular reference counts --- panda/src/tform/mouseWatcherGroup.cxx | 9 +++++++++ panda/src/tform/mouseWatcherGroup.h | 3 +++ 2 files changed, 12 insertions(+) diff --git a/panda/src/tform/mouseWatcherGroup.cxx b/panda/src/tform/mouseWatcherGroup.cxx index bd935a25a2..6a4adcee36 100644 --- a/panda/src/tform/mouseWatcherGroup.cxx +++ b/panda/src/tform/mouseWatcherGroup.cxx @@ -21,6 +21,15 @@ TypeHandle MouseWatcherGroup::_type_handle; +//////////////////////////////////////////////////////////////////// +// Function: MouseWatcherGroup::Destructor +// Access: Public, Virtual +// Description: +//////////////////////////////////////////////////////////////////// +MouseWatcherGroup:: +~MouseWatcherGroup() { +} + //////////////////////////////////////////////////////////////////// // Function: MouseWatcherGroup::add_region // Access: Published diff --git a/panda/src/tform/mouseWatcherGroup.h b/panda/src/tform/mouseWatcherGroup.h index 5bf66ed435..81d824a393 100644 --- a/panda/src/tform/mouseWatcherGroup.h +++ b/panda/src/tform/mouseWatcherGroup.h @@ -32,6 +32,9 @@ // that may be managed as a group. //////////////////////////////////////////////////////////////////// class EXPCL_PANDA MouseWatcherGroup : virtual public ReferenceCount { +public: + virtual ~MouseWatcherGroup(); + PUBLISHED: bool add_region(MouseWatcherRegion *region); bool has_region(MouseWatcherRegion *region) const;