Re: G-Golf - Callback segmentation fault
Matija Obid <[email protected]>
| Newsgroups | gmane.lisp.guile.user |
|---|---|
| Message-ID | <[email protected]> |
Hello again, I think I found something. There is a version check in "g-callable-info-make-closure" function, if I disable it (check patch) all examples works just fine. I'm not quite sure what these functions does, can you take another look? My gi version is 1.80.1. -- Regards, Matija
0001-Fixing-callbacks-segfaults.patch
(text/x-patch, 845 B)
From 4bec7836f17dfd453b877f65d5e91aa29c082d70 Mon Sep 17 00:00:00 2001 From: Matija Obid <[email protected]> Date: Tue, 27 Aug 2024 21:34:50 +0200 Subject: [PATCH] Fixing callbacks segfaults --- g-golf/hl-api/callback.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g-golf/hl-api/callback.scm b/g-golf/hl-api/callback.scm index 633635c..04b9ea2 100644 --- a/g-golf/hl-api/callback.scm +++ b/g-golf/hl-api/callback.scm @@ -150,7 +150,7 @@ ffi-cif ffi-closure-callback user-data) - (if (gi-check-version 1 71 0) + (if (and #f (gi-check-version 1 71 0)) (g-callable-info-create-closure info ffi-cif ffi-closure-callback user-data) (g-callable-info-prepare-closure -- 2.45.2