diff --git a/AUTHORS b/AUTHORS index f8b295e..de4c045 100644 --- a/AUTHORS +++ b/AUTHORS @@ -17,4 +17,4 @@ Arthur Titeica Deepak Thukral Jamie Ly Lu Wang - +Steven Lee diff --git a/src/BackgroundRenderer/SplashBackgroundRenderer.cc b/src/BackgroundRenderer/SplashBackgroundRenderer.cc index 6e3ff95..dfe248d 100644 --- a/src/BackgroundRenderer/SplashBackgroundRenderer.cc +++ b/src/BackgroundRenderer/SplashBackgroundRenderer.cc @@ -188,10 +188,16 @@ void SplashBackgroundRenderer::dump_image(const char * filename, int x1, int y1, p += row_size; } - if(!writer->writePointers(pointers.data(), height)) { + if(!writer->writePointers(pointers.data(), height)) + { throw "Cannot write background image"; } + if(!writer->close()) + { + throw "Cannot finish background image"; + } + fclose(f); }