1.1 --- a/src/core/object.cc Mon Nov 09 12:24:51 2009 +0300
1.2 +++ b/src/core/object.cc Mon Nov 09 16:02:05 2009 +0100
1.3 @@ -293,18 +293,7 @@
1.4 void
1.5 Object::DoDelete (void)
1.6 {
1.7 - // First, check if any of the attached
1.8 - // Object has a non-zero count.
1.9 uint32_t n = m_aggregates->n;
1.10 - for (uint32_t i = 0; i < n; i++)
1.11 - {
1.12 - Object *current = m_aggregates->buffer[i];
1.13 - if (current->GetReferenceCount () != 0)
1.14 - {
1.15 - return;
1.16 - }
1.17 - }
1.18 -
1.19 // Ensure we are disposed.
1.20 for (uint32_t i = 0; i < n; i++)
1.21 {
1.22 @@ -317,8 +306,7 @@
1.23
1.24 int *count = PeekCountPtr ();
1.25
1.26 - // all attached objects have a zero count so,
1.27 - // we can delete them all.
1.28 + // Now, actually delete all objects
1.29 struct Aggregates *aggregates = m_aggregates;
1.30 for (uint32_t i = 0; i < n; i++)
1.31 {