This commit is contained in:
Maurice Grönwoldt 2020-07-09 16:31:33 +02:00
commit 61482e8d4c
36 changed files with 325 additions and 122 deletions

View file

@ -27,7 +27,9 @@ VenoFonts* VenoFonts::getInstance ()
void VenoFonts::destroyAll ()
{
delete instance;
if (instance != nullptr) {
delete instance;
}
instance = nullptr;
}
@ -43,4 +45,6 @@ VenoFonts::~VenoFonts ()
{
delete arvo;
delete lcdFont;
arvo = nullptr;
lcdFont = nullptr;
}

View file

@ -13,6 +13,7 @@ protected:
static VenoFonts* instance;
Font* lcdFont;
Font* arvo;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (VenoFonts)
public:
VenoFonts ();
~VenoFonts ();