diff --git a/gui/src/style.cpp b/gui/src/style.cpp index a510ae587..487c4907e 100644 --- a/gui/src/style.cpp +++ b/gui/src/style.cpp @@ -267,7 +267,7 @@ const char *Style::replaceProperty(const char *prop) if(prop == key) { QJsonValue value = m_theme_json->object().value(key); prop = value.toString().toLocal8Bit().data(); - return prop; + return strdup(prop); } }