[gjs: 1/2] Fix leak when virtual function is unimplemented.
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 1/2] Fix leak when virtual function is unimplemented.
- Date: Thu, 10 Sep 2020 05:40:36 +0000 (UTC)
commit 293e2082b878969cd5269fff5b05931cc494702d
Author: Evan Welsh <noreply evanwelsh com>
Date: Tue Sep 8 14:29:30 2020 -0500
Fix leak when virtual function is unimplemented.
gi/function.cpp | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gi/function.cpp b/gi/function.cpp
index 1b065b598..91bf51ae4 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]