mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-15 14:50:06 +00:00
testentryicons: Fix a memory leak
This commit is contained in:
parent
73f2167fe4
commit
1477882b31
@ -159,8 +159,9 @@ main (int argc, char **argv)
|
|||||||
g_themed_icon_append_name (G_THEMED_ICON (icon), "folder-symbolic");
|
g_themed_icon_append_name (G_THEMED_ICON (icon), "folder-symbolic");
|
||||||
|
|
||||||
gtk_entry_set_icon_from_gicon (GTK_ENTRY (entry),
|
gtk_entry_set_icon_from_gicon (GTK_ENTRY (entry),
|
||||||
GTK_ENTRY_ICON_PRIMARY,
|
GTK_ENTRY_ICON_PRIMARY,
|
||||||
icon);
|
icon);
|
||||||
|
g_object_unref (icon);
|
||||||
gtk_entry_set_icon_sensitive (GTK_ENTRY (entry),
|
gtk_entry_set_icon_sensitive (GTK_ENTRY (entry),
|
||||||
GTK_ENTRY_ICON_PRIMARY,
|
GTK_ENTRY_ICON_PRIMARY,
|
||||||
FALSE);
|
FALSE);
|
||||||
|
Loading…
Reference in New Issue
Block a user