diff options
author | Evan Welsh <noreply@evanwelsh.com> | 2020-09-08 14:29:30 -0500 |
---|---|---|
committer | Evan Welsh <noreply@evanwelsh.com> | 2020-09-08 14:29:30 -0500 |
commit | 293e2082b878969cd5269fff5b05931cc494702d (patch) | |
tree | 6aa73753cb30d1c970de2acee3cab482441a82dd | |
parent | b0668c9139f6028152b0d9941862614f04de5405 (diff) | |
download | gjs-293e2082b878969cd5269fff5b05931cc494702d.tar.gz |
Fix leak when virtual function is unimplemented.
-rw-r--r-- | gi/function.cpp | 1 |
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; } |