diff --git a/main/main.cpp b/main/main.cpp index 9376d832046..c640129565e 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1464,6 +1464,7 @@ bool Main::start() { String iconpath = GLOBAL_DEF("application/config/icon", "Variant()"); if (iconpath != "") { Ref icon; + icon.instance(); if (icon->load(iconpath) == OK) OS::get_singleton()->set_icon(icon); }