aboutsummaryrefslogtreecommitdiff
path: root/core/message_queue.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2014-04-05 12:39:30 -0300
committerJuan Linietsky2014-04-05 12:39:30 -0300
commit9f33134c93ecbadda70e8eefc50563e29b2eb7f2 (patch)
tree299ded94fe74a61bf8094935d0f3283f6f30e435 /core/message_queue.cpp
parent35b84d2c85fd152bee05d7d5a05e20a5f602a285 (diff)
downloadgodot-9f33134c93ecbadda70e8eefc50563e29b2eb7f2.tar.gz
godot-9f33134c93ecbadda70e8eefc50563e29b2eb7f2.tar.zst
godot-9f33134c93ecbadda70e8eefc50563e29b2eb7f2.zip
-Support for changing fonts
-Detect when free() might crash the project and throw error -fixed 2D Bounce in physics (3d still broken) -renamed “on_top” property to “behind_parent”, which makes more sense, old on_top remains there for compatibility but is invisible. -large amount of fixes
Diffstat (limited to 'core/message_queue.cpp')
-rw-r--r--core/message_queue.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/message_queue.cpp b/core/message_queue.cpp
index a9c49fbef..dbf6217dc 100644
--- a/core/message_queue.cpp
+++ b/core/message_queue.cpp
@@ -378,11 +378,12 @@ void MessageQueue::flush() {
}
}
- message->~Message();
read_pos+=sizeof(Message);
if (message->type!=TYPE_NOTIFICATION)
read_pos+=sizeof(Variant)*message->args;
+ message->~Message();
+
_THREAD_SAFE_UNLOCK_
}