[gtk/wip/baedert/gl-rework: 91/127] testentryicons: Fix a memory leak
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/gl-rework: 91/127] testentryicons: Fix a memory leak
- Date: Mon, 30 Dec 2019 04:18:37 +0000 (UTC)
commit 7eecc64326233a709ba4270c19eaaf776b649d27
Author: Timm Bäder <mail baedert org>
Date: Tue Dec 17 13:20:28 2019 +0100
testentryicons: Fix a memory leak
tests/testentryicons.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/tests/testentryicons.c b/tests/testentryicons.c
index 83f81dbaab..a3c92f7857 100644
--- 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]