Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
iMSTK
iMSTK
Commits
abfcc445
Commit
abfcc445
authored
Jun 21, 2019
by
Sreekanth Arikatla
Browse files
REFAC: Move cleanup calls in module to Module::End()
parent
a0823f32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/Core/imstkModule.cpp
View file @
abfcc445
...
...
@@ -98,18 +98,6 @@ Module::start()
}
}
// Cleanup
if
(
m_preCleanUpCallback
)
{
m_preCleanUpCallback
(
this
);
}
this
->
cleanUpModule
();
if
(
m_postCleanUpCallback
)
{
m_postCleanUpCallback
(
this
);
}
m_status
=
ModuleStatus
::
INACTIVE
;
}
...
...
@@ -144,6 +132,19 @@ Module::pause()
void
Module
::
end
()
{
// Cleanup
if
(
m_preCleanUpCallback
)
{
m_preCleanUpCallback
(
this
);
}
this
->
cleanUpModule
();
if
(
m_postCleanUpCallback
)
{
m_postCleanUpCallback
(
this
);
}
if
((
m_status
==
ModuleStatus
::
INACTIVE
)
||
(
m_status
==
ModuleStatus
::
TERMINATING
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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