Merge pull request #25546 from Zylann/fix_garbage_log_pointer

Fixed uninitialized pointer access due to THEME_CHANGED notification
This commit is contained in:
Rémi Verschelde 2019-02-08 12:11:16 +01:00 committed by GitHub
commit 15a5c97591
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,7 +132,6 @@ void EditorLog::_bind_methods() {
EditorLog::EditorLog() {
VBoxContainer *vb = this;
add_constant_override("separation", get_constant("separation", "VBoxContainer"));
HBoxContainer *hb = memnew(HBoxContainer);
vb->add_child(hb);
@ -163,6 +162,8 @@ EditorLog::EditorLog() {
current = Thread::get_caller_id();
add_constant_override("separation", get_constant("separation", "VBoxContainer"));
EditorNode::get_undo_redo()->set_commit_notify_callback(_undo_redo_cbk, this);
}