testentryicons: Fix a memory leak

This commit is contained in:
Timm Bäder 2019-12-17 13:20:28 +01:00
parent 73f2167fe4
commit 1477882b31

View File

@ -161,6 +161,7 @@ main (int argc, char **argv)
gtk_entry_set_icon_from_gicon (GTK_ENTRY (entry),
GTK_ENTRY_ICON_PRIMARY,
icon);
g_object_unref (icon);
gtk_entry_set_icon_sensitive (GTK_ENTRY (entry),
GTK_ENTRY_ICON_PRIMARY,
FALSE);