summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2020-09-10 05:40:35 +0000
committerPhilip Chimento <philip.chimento@gmail.com>2020-09-10 05:40:35 +0000
commit99116181449771f3a86c634c45760a9d26e869c1 (patch)
tree9ce2986e4a82bac6b4210b3fc0c3a3dc558d430b
parenteb2876afd845253f95029b84b697f18e44d1facb (diff)
parent293e2082b878969cd5269fff5b05931cc494702d (diff)
downloadgjs-99116181449771f3a86c634c45760a9d26e869c1.tar.gz
Merge branch 'ewlsh/fix-leak' into 'master'
Fix leak when virtual function is unimplemented. See merge request GNOME/gjs!498
-rw-r--r--gi/function.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/gi/function.cpp b/gi/function.cpp
index 585c3ce0..4cf9039f 100644
--- a/gi/function.cpp
+++ b/gi/function.cpp
@@ -1229,6 +1229,7 @@ init_cached_function_data (JSContext *context,
gjs_throw(context, "Virtual function not implemented: %s",
error->message);
+ g_clear_error(&error);
return false;
}