Mercurial > hg > xemacs-beta
comparison src/lstream.c @ 4990:8f0cf4fd3d2c
Automatic merge
| author | Ben Wing <ben@xemacs.org> |
|---|---|
| date | Sat, 06 Feb 2010 04:01:46 -0600 |
| parents | 16112448d484 |
| children | 6f2158fa75ed b5df3737028a |
comparison
equal
deleted
inserted
replaced
| 4989:d2ec55325515 | 4990:8f0cf4fd3d2c |
|---|---|
| 855 | 855 |
| 856 /* We set the pointers to 0 so that we don't lose when this function | 856 /* We set the pointers to 0 so that we don't lose when this function |
| 857 is called more than once on the same object */ | 857 is called more than once on the same object */ |
| 858 if (lstr->out_buffer) | 858 if (lstr->out_buffer) |
| 859 { | 859 { |
| 860 xfree (lstr->out_buffer, unsigned char *); | 860 xfree (lstr->out_buffer); |
| 861 lstr->out_buffer = 0; | 861 lstr->out_buffer = 0; |
| 862 } | 862 } |
| 863 if (lstr->in_buffer) | 863 if (lstr->in_buffer) |
| 864 { | 864 { |
| 865 xfree (lstr->in_buffer, unsigned char *); | 865 xfree (lstr->in_buffer); |
| 866 lstr->in_buffer = 0; | 866 lstr->in_buffer = 0; |
| 867 } | 867 } |
| 868 if (lstr->unget_buffer) | 868 if (lstr->unget_buffer) |
| 869 { | 869 { |
| 870 xfree (lstr->unget_buffer, unsigned char *); | 870 xfree (lstr->unget_buffer); |
| 871 lstr->unget_buffer = 0; | 871 lstr->unget_buffer = 0; |
| 872 } | 872 } |
| 873 | 873 |
| 874 return rc; | 874 return rc; |
| 875 } | 875 } |
| 1553 resizing_buffer_closer (Lstream *stream) | 1553 resizing_buffer_closer (Lstream *stream) |
| 1554 { | 1554 { |
| 1555 struct resizing_buffer_stream *str = RESIZING_BUFFER_STREAM_DATA (stream); | 1555 struct resizing_buffer_stream *str = RESIZING_BUFFER_STREAM_DATA (stream); |
| 1556 if (str->buf) | 1556 if (str->buf) |
| 1557 { | 1557 { |
| 1558 xfree (str->buf, unsigned char *); | 1558 xfree (str->buf); |
| 1559 str->buf = 0; | 1559 str->buf = 0; |
| 1560 } | 1560 } |
| 1561 return 0; | 1561 return 0; |
| 1562 } | 1562 } |
| 1563 | 1563 |
