stop teh png image content handler directly reporting errors to users

This commit is contained in:
Vincent Sanders 2016-04-29 10:29:48 +01:00
parent 7b28db6249
commit b2e8c0d54f

View File

@ -246,7 +246,6 @@ static nserror nspng_create_png_data(nspng_content *png_c)
if (png_c->png == NULL) { if (png_c->png == NULL) {
msg_data.error = messages_get("NoMemory"); msg_data.error = messages_get("NoMemory");
content_broadcast(&png_c->base, CONTENT_MSG_ERROR, msg_data); content_broadcast(&png_c->base, CONTENT_MSG_ERROR, msg_data);
warn_user("NoMemory", 0);
return NSERROR_NOMEM; return NSERROR_NOMEM;
} }
@ -258,7 +257,6 @@ static nserror nspng_create_png_data(nspng_content *png_c)
msg_data.error = messages_get("NoMemory"); msg_data.error = messages_get("NoMemory");
content_broadcast(&png_c->base, CONTENT_MSG_ERROR, msg_data); content_broadcast(&png_c->base, CONTENT_MSG_ERROR, msg_data);
warn_user("NoMemory", 0);
return NSERROR_NOMEM; return NSERROR_NOMEM;
} }