Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
VACore
Commits
2b91781d
Commit
2b91781d
authored
Aug 31, 2017
by
Dipl.-Ing. Jonas Stienen
Browse files
Looking for bug in PoolObject (portals are referenced at core reset, but not used ...)
parent
99d62c44
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/VAObjectPool.cpp
View file @
2b91781d
...
...
@@ -231,8 +231,10 @@ CVAPoolObject::~CVAPoolObject() {
}
int
CVAPoolObject
::
RemoveReference
()
const
{
assert
(
GetNumReferences
()
>=
1
);
int
CVAPoolObject
::
RemoveReference
()
const
{
const
int
iNumReferences
=
GetNumReferences
();
assert
(
iNumReferences
>=
1
);
int
iRefs
=
CVAReferenceableObject
::
RemoveReference
();
if
((
iRefs
==
0
)
&&
m_pParentPool
)
m_pParentPool
->
ReleaseObject
(
const_cast
<
CVAPoolObject
*>
(
this
)
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment