aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2021-01-13 12:53:48 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2021-01-13 12:53:48 +0100
commitcb301d2b037cae7afe82559b0c5184e55da759d7 (patch)
tree897fac23a9b07e23d85445e301f581052a558f30
parentfac55f44cade530dc2a55b204bca194b5b05b44e (diff)
parent314e9071fe5339fc3c7addf61b23c6042a216934 (diff)
downloadsynthpod-cb301d2b037cae7afe82559b0c5184e55da759d7.tar.xz
Merge commit '314e9071fe5339fc3c7addf61b23c6042a216934'
-rw-r--r--subprojects/d2tk/VERSION2
-rw-r--r--subprojects/d2tk/src/core.c6
2 files changed, 6 insertions, 2 deletions
diff --git a/subprojects/d2tk/VERSION b/subprojects/d2tk/VERSION
index 04a23327..64acfd0c 100644
--- a/subprojects/d2tk/VERSION
+++ b/subprojects/d2tk/VERSION
@@ -1 +1 @@
-0.1.1177
+0.1.1179
diff --git a/subprojects/d2tk/src/core.c b/subprojects/d2tk/src/core.c
index 0b1d5323..3e9ee4be 100644
--- a/subprojects/d2tk/src/core.c
+++ b/subprojects/d2tk/src/core.c
@@ -933,7 +933,11 @@ D2TK_API d2tk_widget_t *
d2tk_core_widget_begin(d2tk_core_t *core, uint64_t hash, d2tk_widget_t *widget)
{
widget->body = _d2tk_core_get_memcache(core, hash);
- assert(widget->body);
+
+ if(!widget->body) // out-of-memory
+ {
+ return NULL;
+ }
if(*widget->body) // bluntly use cached widget instruction buffer
{