projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73f2167
)
testentryicons: Fix a memory leak
author
Timm Bäder
<mail@baedert.org>
Tue, 17 Dec 2019 12:20:28 +0000
(13:20 +0100)
committer
Timm Bäder
<mail@baedert.org>
Tue, 7 Jan 2020 16:27:16 +0000
(17:27 +0100)
tests/testentryicons.c
patch
|
blob
|
history
diff --git
a/tests/testentryicons.c
b/tests/testentryicons.c
index 83f81dbaab8ccb8d3d21e0f2c37621382aa00f75..a3c92f78575486675d9a06c5d5ebf9c13927171b 100644
(file)
--- a/
tests/testentryicons.c
+++ b/
tests/testentryicons.c
@@
-159,8
+159,9
@@
main (int argc, char **argv)
g_themed_icon_append_name (G_THEMED_ICON (icon), "folder-symbolic");
gtk_entry_set_icon_from_gicon (GTK_ENTRY (entry),
- GTK_ENTRY_ICON_PRIMARY,
- icon);
+ GTK_ENTRY_ICON_PRIMARY,
+ icon);
+ g_object_unref (icon);
gtk_entry_set_icon_sensitive (GTK_ENTRY (entry),
GTK_ENTRY_ICON_PRIMARY,
FALSE);