Skip to content

Fixed uninitialized pointer access due to THEME_CHANGED notification

Rafał Mikrut requested to merge github/fork/Zylann/fix_garbage_log_pointer into master

Created by: Zylann

I ran into it while testing another bug. EditorLog is trying to add a theme override to itself at the beginning of the constructor, which triggers NOTIFICATION_THEME_CHANGED on itself, and it crashes on garbage because none of the member vars have been set at this stage. I moved the theme override at the end of the constructor to fix it.

Merge request reports

Loading