From b2e8c0d54ff9774585416fbea7c5c0b66909c535 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 29 Apr 2016 10:29:48 +0100 Subject: stop teh png image content handler directly reporting errors to users --- image/png.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/image/png.c b/image/png.c index 1c78d3006..11903cbd3 100644 --- a/image/png.c +++ b/image/png.c @@ -246,7 +246,6 @@ static nserror nspng_create_png_data(nspng_content *png_c) if (png_c->png == NULL) { msg_data.error = messages_get("NoMemory"); content_broadcast(&png_c->base, CONTENT_MSG_ERROR, msg_data); - warn_user("NoMemory", 0); return NSERROR_NOMEM; } @@ -258,7 +257,6 @@ static nserror nspng_create_png_data(nspng_content *png_c) msg_data.error = messages_get("NoMemory"); content_broadcast(&png_c->base, CONTENT_MSG_ERROR, msg_data); - warn_user("NoMemory", 0); return NSERROR_NOMEM; } -- cgit v1.2.3