[gtk/matthiasc/for-main: 1/2] gsk: Plug a memory leak




commit 2af8ac655b266f6d9acd0184b29d430f99be3975
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Apr 3 07:34:09 2022 -0400

    gsk: Plug a memory leak
    
    This was introduced in 9defc7fc647.

 gsk/gl/gskgldriver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gsk/gl/gskgldriver.c b/gsk/gl/gskgldriver.c
index 0390f97702..0be0b8f5f1 100644
--- a/gsk/gl/gskgldriver.c
+++ b/gsk/gl/gskgldriver.c
@@ -348,7 +348,7 @@ gsk_gl_driver_load_programs (GskGLDriver  *self,
   /* Use XMacros to register all of our programs and their uniforms */
 #define GSK_GL_NO_UNIFORMS
 #define GSK_GL_SHADER_RESOURCE(name)                                                            \
-  g_bytes_ref(g_resources_lookup_data("/org/gtk/libgsk/gl/" name, 0, NULL))
+  g_resources_lookup_data("/org/gtk/libgsk/gl/" name, 0, NULL)
 #define GSK_GL_SHADER_STRING(str)                                                               \
   g_bytes_new_static(str, strlen(str))
 #define GSK_GL_SHADER_SINGLE(bytes)                                                             \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]