Skip to content

Commit

Permalink
Feature add destroy (#4)
Browse files Browse the repository at this point in the history
* add destroyInstance()

* spaces -> tabs

* remove useless if
  • Loading branch information
arneboe authored and 2maz committed Nov 1, 2018
1 parent 820cb2b commit 48d994e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Singleton.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ class Singleton

return msInstance;
}

static void destroyInstance()
{
delete msInstance;
msInstance = 0;
}

virtual ~Singleton()
{
Expand Down

0 comments on commit 48d994e

Please sign in to comment.