Beispiel #1
0
	SIG_FOREACH(it, m_components)
	{
		Component *comp = *it;
		// This prevents double-freeing the pointer
		if (comp->GetUsers() > 1) {
			comp->RemoveUser();
		} else {
			SIG_FREE((*it));
		}
	}