[gtk/misc-measure: 5/5] xxx: Plug a memory leak in GtkPopover




commit 5efa3400d94f9bec390315fec1eba61704cda19c
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Dec 13 00:46:22 2020 -0500

    xxx: Plug a memory leak in GtkPopover

 gtk/gtkpopover.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index dff0ab6c5a..3be2803a7d 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -1414,6 +1414,7 @@ create_arrow_render_node (GtkPopover *popover)
 
       stroke = gsk_stroke_new (border.bottom + 1);
       gtk_snapshot_push_stroke (snapshot, path, stroke);
+      gsk_stroke_free (stroke);
 
       gsk_path_get_bounds (path, &bounds);
       gtk_snapshot_append_color (snapshot, border_color, &bounds);


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