Logo Search packages:      
Sourcecode: inkscape version File versions

void Inkscape::IO::GzipInputStream::close ( void   )  [virtual]

Closes this input stream and releases any system resources associated with the stream.

Reimplemented from Inkscape::IO::BasicInputStream.

Definition at line 85 of file gzipstream.cpp.

{
    if (closed)
        return;

    int zerr = inflateEnd(&d_stream);
    if (zerr != Z_OK) {
        printf("inflateEnd: Some kind of problem: %d\n", zerr);
    }

    if ( srcBuf ) {
      free(srcBuf);
      srcBuf = 0;
    }
    if ( outputBuf ) {
        free(outputBuf);
        outputBuf = 0;
    }
    closed = true;
}


Generated by  Doxygen 1.6.0   Back to index