From efee2b08f575e2c216cffa6f08a928223ab2cedb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 12 Jun 2006 04:48:20 +0000 Subject: Store memory bug fixes (multiple ref ptr's to the same object, bad), control panel fixes git-svn-id: http://svn.drobilla.net/lad/grauph@32 a436a847-0d15-0410-975c-d299462d15a1 --- src/common/util/CountedPtr.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/common/util') diff --git a/src/common/util/CountedPtr.h b/src/common/util/CountedPtr.h index 5c2a48f0..0886bf36 100644 --- a/src/common/util/CountedPtr.h +++ b/src/common/util/CountedPtr.h @@ -101,6 +101,7 @@ public: CountedPtr& operator=(const CountedPtr& copy) { if (this != ©) { + assert(_counter != copy._counter); release(); retain(copy._counter); } @@ -112,6 +113,7 @@ public: CountedPtr& operator=(const CountedPtr& y) { if (this != (CountedPtr*)&y) { + assert(_counter != y._counter); release(); retain(y._counter); } -- cgit v1.2.1