projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08296b8
)
snapshot: Plug memory leak when collecting rounded clip nodes
author
Timm Bäder
<mail@baedert.org>
Sat, 31 Mar 2018 09:41:13 +0000
(11:41 +0200)
committer
Timm Bäder
<mail@baedert.org>
Sat, 31 Mar 2018 12:45:03 +0000
(14:45 +0200)
gtk/gtksnapshot.c
patch
|
blob
|
history
diff --git
a/gtk/gtksnapshot.c
b/gtk/gtksnapshot.c
index 31d011c51103e6a82b1cc05bacccada11c661e55..98994084cefc5c92bca7a68ed6487967ee0010fd 100644
(file)
--- a/
gtk/gtksnapshot.c
+++ b/
gtk/gtksnapshot.c
@@
-846,7
+846,11
@@
gtk_snapshot_collect_rounded_clip (GtkSnapshot *snapshot,
if (clip_node->bounds.size.width == 0 ||
clip_node->bounds.size.height == 0)
- return NULL;
+ {
+ gsk_render_node_unref (node);
+ gsk_render_node_unref (clip_node);
+ return NULL;
+ }
if (name)
gsk_render_node_set_name (clip_node, name);