summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Welsh <noreply@evanwelsh.com>2020-09-08 14:29:30 -0500
committerEvan Welsh <noreply@evanwelsh.com>2020-09-08 14:29:30 -0500
commit293e2082b878969cd5269fff5b05931cc494702d (patch)
tree6aa73753cb30d1c970de2acee3cab482441a82dd
parentb0668c9139f6028152b0d9941862614f04de5405 (diff)
downloadgjs-293e2082b878969cd5269fff5b05931cc494702d.tar.gz
Fix leak when virtual function is unimplemented.
-rw-r--r--gi/function.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/gi/function.cpp b/gi/function.cpp
index 1b065b59..91bf51ae 100644
--- a/gi/function.cpp
+++ b/gi/function.cpp
@@ -1222,6 +1222,7 @@ init_cached_function_data (JSContext *context,
gjs_throw(context, "Virtual function not implemented: %s",
error->message);
+ g_clear_error(&error);
return false;
}