all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 7094c4cf023d2c2a89dd36b7d6575983cdabfdf9 1046 bytes (raw)
name: gnu/packages/patches/cogl-fix-double-free.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
From 38d3fda8849ac327b473ac11dfac5499f595b7ac Mon Sep 17 00:00:00 2001
Message-ID: <38d3fda8849ac327b473ac11dfac5499f595b7ac.1694118000.git.vivien@planete-kraus.eu>
In-Reply-To: <cover.1694118000.git.vivien@planete-kraus.eu>
References: <cover.1694118000.git.vivien@planete-kraus.eu>
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Thu, 7 Sep 2023 22:16:48 +0200
Subject: [PATCH 1/1] 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 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cogl/cogl-context.c b/cogl/cogl-context.c
index a7eed29a..22809424 100644
--- a/cogl/cogl-context.c
+++ b/cogl/cogl-context.c
@@ -219,6 +219,7 @@ cogl_context_new (CoglDisplay *display,
     }
 
   context->display = 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
-- 
2.41.0


debug log:

solving 7094c4cf02 ...
found 7094c4cf02 in https://yhetil.org/guix/018c75fd44fa1b1462a49f5bf700b9194d9c6341.1694118524.git.vivien@planete-kraus.eu/

applying [1/1] https://yhetil.org/guix/018c75fd44fa1b1462a49f5bf700b9194d9c6341.1694118524.git.vivien@planete-kraus.eu/
diff --git a/gnu/packages/patches/cogl-fix-double-free.patch b/gnu/packages/patches/cogl-fix-double-free.patch
new file mode 100644
index 0000000000..7094c4cf02

1:29: trailing whitespace.
 
1:32: trailing whitespace.
 
1:35: trailing whitespace.
-- 
Checking patch gnu/packages/patches/cogl-fix-double-free.patch...
1:37: new blank line at EOF.
+
Applied patch gnu/packages/patches/cogl-fix-double-free.patch cleanly.
warning: 4 lines add whitespace errors.

index at:
100644 7094c4cf023d2c2a89dd36b7d6575983cdabfdf9	gnu/packages/patches/cogl-fix-double-free.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.