From 15d0f7d96cf53263196e26f2eb48ededdff0efeb Mon Sep 17 00:00:00 2001 Message-ID: <15d0f7d96cf53263196e26f2eb48ededdff0efeb.1694148833.git.vivien@planete-kraus.eu> From: Vivien Kraus Date: Thu, 7 Sep 2023 22:16:48 +0200 Subject: [PATCH] Prevent double free on context objects The display is unrefed in the context destructor, but not refed in the constructor. This targets an archived (read-only) repository. --- cogl/cogl-context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogl/cogl-context.c b/cogl/cogl-context.c index a7eed29a..7cdc9fe7 100644 --- a/cogl/cogl-context.c +++ b/cogl/cogl-context.c @@ -218,7 +218,7 @@ cogl_context_new (CoglDisplay *display, return NULL; } - context->display = display; + context->display = cogl_object_ref (display); /* This is duplicated data, but it's much more convenient to have the driver attached to the context and the value is accessed a base-commit: 61d966c7442d521e38572b7f93ac7b8973a9c65e -- 2.41.0 > aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/pretty-print.scm
AgeCommit message (Expand)Author
2024-09-09gnu: Add fmt-11....* gnu/packages/pretty-print.scm (fmt-11): New variable. (fmt-10): Inherit from fmt-11. Change-Id: Ic9f28cfb5a805f33beaad9794d69f992a5a27652 Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn> Greg Hogan
2024-08-31gnu: Boost: Fix a bug that breaks libetonyek....This fixes <https://issues.guix.gnu.org/72040>. * gnu/packages/patches/boost-fix-duplicate-definitions-bug.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/boost.scm (boost)[source]: Use it. (boost-for-source-highlight): New variable, not using the patch. * gnu/packages/pretty-print.scm (source-highlight)[inputs]: Replace BOOST with BOOST-FOR-SOURCE-HIGHLIGHT. Change-Id: I5fbc9eb5000aefd7d3a14cc7a0482741032b5400 Leo Famulari