Try fixing #1713 (crash pessing ESC on login screen).

This commit is contained in:
hiker
2014-11-26 23:40:50 +11:00
parent 45b19997de
commit 7c7fb68e82
2 changed files with 4 additions and 1 deletions

View File

@@ -97,6 +97,9 @@ public:
{
ScalableFont* out = new ScalableFont(*this);
out->m_is_hollow_copy = true;
//FIXME: test only. Reset the reference counter of the copy to 1
while (out->getReferenceCount() > 1)
out->drop();
return out;
}

View File

@@ -62,7 +62,7 @@ DynamicRibbonWidget::DynamicRibbonWidget(const bool combo, const bool multi_row)
// -----------------------------------------------------------------------------
DynamicRibbonWidget::~DynamicRibbonWidget()
{
delete m_font;
m_font->drop();
if (m_animated_contents)
{
GUIEngine::needsUpdate.remove(this);