summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2016-12-12 22:12:27 +0000
committerBastien Nocera <hadess@hadess.net>2016-12-19 18:48:05 +0100
commitb2b23b06545c15d322c875dc439773c990619e37 (patch)
tree28c70d172bd2fc1773c436128c11383aa36b4642 /tests
parentcd302dd3005733e235292711a6e5763711cf5895 (diff)
downloadgdk-pixbuf-b2b23b06545c15d322c875dc439773c990619e37.tar.gz
tests: Fix a missing error handling block
err could never be set here, meaning we were missing out on some error checking. The test still passes. Coverity CID 1388525. https://bugzilla.gnome.org/show_bug.cgi?id=776020
Diffstat (limited to 'tests')
-rw-r--r--tests/pixbuf-lowmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/pixbuf-lowmem.c b/tests/pixbuf-lowmem.c
index 9e9571f92..b34e52711 100644
--- a/tests/pixbuf-lowmem.c
+++ b/tests/pixbuf-lowmem.c
@@ -133,7 +133,7 @@ mem_test (const gchar *bytes, gsize len)
err = NULL;
did_fail = TRUE;
}
- gdk_pixbuf_loader_close (loader, NULL);
+ gdk_pixbuf_loader_close (loader, &err);
if (err)
{
g_error_free (err);