diff options
| author | bgaldrikian <[email protected]> | 2018-10-03 17:51:20 -0700 |
|---|---|---|
| committer | bgaldrikian <[email protected]> | 2018-10-03 17:51:20 -0700 |
| commit | 6f51c0ad55f3ed33597b8b12391d426fe28a0923 (patch) | |
| tree | b132a8cb2485820ff9556dafc8e874bc9d41f255 /samples/SampleBase/blast/BlastFamily.cpp | |
| parent | Fixes to UnitySample to make it build & run. ( In Unity 2018.2 ) (diff) | |
| download | archived-blast-1.1.4_rc1.tar.xz archived-blast-1.1.4_rc1.zip | |
Blast 1.1.4. See docs/release_notes.txt.v1.1.4_rc1
Diffstat (limited to 'samples/SampleBase/blast/BlastFamily.cpp')
| -rwxr-xr-x | samples/SampleBase/blast/BlastFamily.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/samples/SampleBase/blast/BlastFamily.cpp b/samples/SampleBase/blast/BlastFamily.cpp index 5d41eb7..315da5c 100755 --- a/samples/SampleBase/blast/BlastFamily.cpp +++ b/samples/SampleBase/blast/BlastFamily.cpp @@ -71,10 +71,16 @@ BlastFamily::~BlastFamily() {
m_stressSolver->release();
}
-
- m_pxFamily->unsubscribe(m_listener);
-
- m_pxFamily->release();
+ if (m_pxFamily)
+ {
+ m_pxFamily->unsubscribe(m_listener);
+ m_pxFamily->release();
+ }
+ //Self released
+ //if (m_tkFamily)
+ //{
+ // m_tkFamily->release();
+ //}
}
void BlastFamily::initialize(const BlastAsset::ActorDesc& desc)
|