summaryrefslogtreecommitdiff
path: root/rsScriptC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rsScriptC.cpp')
-rw-r--r--rsScriptC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rsScriptC.cpp b/rsScriptC.cpp
index 929dd683..b4eb995a 100644
--- a/rsScriptC.cpp
+++ b/rsScriptC.cpp
@@ -322,7 +322,7 @@ RsScript rsi_ScriptCCreate(Context *rsc,
if (!s->runCompiler(rsc, resName, cacheDir, (uint8_t *)text, text_length)) {
// Error during compile, destroy s and return null.
- delete s;
+ ObjectBase::checkDelete(s);
return NULL;
}