diff options
| author | theAdib <theAdib@users.sourceforge.net> | 2009-05-11 22:08:17 +0000 |
|---|---|---|
| committer | theAdib <theAdib@users.sourceforge.net> | 2009-05-11 22:08:17 +0000 |
| commit | 8c9d50b74134cac4232a88cb198e957e82cb24c1 (patch) | |
| tree | c063b9a71aef4d10b8aee441b33662d852a290e7 /src/helper/png-write.cpp | |
| parent | German translation update by McBen (diff) | |
| download | inkscape-8c9d50b74134cac4232a88cb198e957e82cb24c1.tar.gz inkscape-8c9d50b74134cac4232a88cb198e957e82cb24c1.zip | |
BUG: #273767: crash on ...; resolved crash on several pixbuf operations
(bzr r7863)
Diffstat (limited to 'src/helper/png-write.cpp')
| -rw-r--r-- | src/helper/png-write.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/helper/png-write.cpp b/src/helper/png-write.cpp index 0e056e981..3ac900680 100644 --- a/src/helper/png-write.cpp +++ b/src/helper/png-write.cpp @@ -133,6 +133,7 @@ sp_png_write_rgba_striped(SPDocument *doc, png_uint_32 r; g_return_val_if_fail(filename != NULL, false); + g_return_val_if_fail(data != NULL, false); /* open the file */ @@ -496,7 +497,7 @@ sp_export_png_file(SPDocument *doc, gchar const *filename, nr_pixelstore_64K_free(ebp.px); } else { ebp.sheight = 64; - ebp.px = g_new(guchar, 4 * ebp.sheight * width); + ebp.px = g_try_new(guchar, 4 * ebp.sheight * width); write_status = sp_png_write_rgba_striped(doc, path, width, height, xdpi, ydpi, sp_export_get_rows, &ebp); g_free(ebp.px); } |
