projects
/
laserbrain_demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
semi-ported to msys2
[laserbrain_demo]
/
src
/
blob_exhibit.cc
diff --git
a/src/blob_exhibit.cc
b/src/blob_exhibit.cc
index
0378359
..
5e9f213
100644
(file)
--- a/
src/blob_exhibit.cc
+++ b/
src/blob_exhibit.cc
@@
-41,6
+41,7
@@
BlobExhibit::BlobExhibit()
BlobExhibit::~BlobExhibit()
{
+ destroy();
delete priv;
}
@@
-62,8
+63,10
@@
bool BlobExhibit::init()
void BlobExhibit::destroy()
{
- msurf_free(priv->msurf);
- priv->msurf = 0;
+ if(priv->msurf) {
+ msurf_free(priv->msurf);
+ priv->msurf = 0;
+ }
}
void BlobExhibit::update(float dt)