summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-11-16 09:08:59 -0500
committerMatthias Clasen <mclasen@redhat.com>2021-11-16 09:08:59 -0500
commit1b745e7cfc789a3eb12c3388c2bad4b694083f4d (patch)
tree4a16f28537f9f30753c70fda5de55899e118a2a6
parent42767fef6014797355745860e1d37f466e283da2 (diff)
downloadpango-1b745e7cfc789a3eb12c3388c2bad4b694083f4d.tar.gz
Another small leak fix
-rw-r--r--tests/testrandom.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/testrandom.c b/tests/testrandom.c
index ac5695ec..e28d9442 100644
--- a/tests/testrandom.c
+++ b/tests/testrandom.c
@@ -269,6 +269,7 @@ init_ltr_words (void)
file = g_file_new_for_path ("/usr/share/dict/words");
bytes = g_file_load_bytes (file, NULL, NULL, NULL);
+ g_object_unref (file);
if (bytes)
{
result = g_strsplit (g_bytes_get_data (bytes, NULL), "\n", -1);