Try fixing #1713 (crash pessing ESC on login screen).
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user