diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2016-10-02 22:44:54 +0000 |
|---|---|---|
| committer | jabiertxof <info@marker.es> | 2016-10-02 22:44:54 +0000 |
| commit | 90e142963afd950b2868434075890054aef090b3 (patch) | |
| tree | edcaf3d0d85b614e5f327fb58c909ffee5207e26 /src/io/gzipstream.cpp | |
| parent | Added some widgets from caligraphic tool (diff) | |
| parent | Adjust dock size to minimum width during canvas table size allocation signal. (diff) | |
| download | inkscape-90e142963afd950b2868434075890054aef090b3.tar.gz inkscape-90e142963afd950b2868434075890054aef090b3.zip | |
Update to trunk and some fixes
(bzr r14865.1.14)
Diffstat (limited to 'src/io/gzipstream.cpp')
| -rw-r--r-- | src/io/gzipstream.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/io/gzipstream.cpp b/src/io/gzipstream.cpp index 380c42411..330191ecd 100644 --- a/src/io/gzipstream.cpp +++ b/src/io/gzipstream.cpp @@ -171,12 +171,12 @@ bool GzipInputStream::load() } srcLen = inputBuf.size(); - srcBuf = new Byte [srcLen]; + srcBuf = new (std::nothrow) Byte [srcLen]; if (!srcBuf) { return false; } - outputBuf = new unsigned char [OUT_SIZE]; + outputBuf = new (std::nothrow) unsigned char [OUT_SIZE]; if ( !outputBuf ) { delete[] srcBuf; srcBuf = NULL; @@ -386,14 +386,14 @@ void GzipOutputStream::flush() } uLong srclen = inputBuf.size(); - Bytef *srcbuf = new Bytef [srclen]; + Bytef *srcbuf = new (std::nothrow) Bytef [srclen]; if (!srcbuf) { return; } uLong destlen = srclen; - Bytef *destbuf = new Bytef [(destlen + (srclen/100) + 13)]; + Bytef *destbuf = new (std::nothrow) Bytef [(destlen + (srclen/100) + 13)]; if (!destbuf) { delete[] srcbuf; |
