Mercurial > hg > xemacs-beta
comparison src/glyphs-eimage.c @ 1726:a8d8f419b459
[xemacs-hg @ 2003-09-30 15:26:34 by james]
Add type information to xfree to avoid alias creation.
author | james |
---|---|
date | Tue, 30 Sep 2003 15:27:01 +0000 |
parents | 79c6ff3eef26 |
children | 543769b89fed |
comparison
equal
deleted
inserted
replaced
1725:7ff8f4d70aec | 1726:a8d8f419b459 |
---|---|
156 jpeg_destroy_decompress (data->cinfo_ptr); | 156 jpeg_destroy_decompress (data->cinfo_ptr); |
157 | 157 |
158 if (data->instream) | 158 if (data->instream) |
159 retry_fclose (data->instream); | 159 retry_fclose (data->instream); |
160 | 160 |
161 if (data->eimage) xfree (data->eimage); | 161 if (data->eimage) |
162 xfree (data->eimage, UChar_Binary *); | |
162 | 163 |
163 return Qnil; | 164 return Qnil; |
164 } | 165 } |
165 | 166 |
166 /* | 167 /* |
551 { | 552 { |
552 DGifCloseFile (data->giffile); | 553 DGifCloseFile (data->giffile); |
553 GifFree(data->giffile); | 554 GifFree(data->giffile); |
554 } | 555 } |
555 if (data->eimage) | 556 if (data->eimage) |
556 xfree (data->eimage); | 557 xfree (data->eimage, UChar_Binary *); |
557 | 558 |
558 return Qnil; | 559 return Qnil; |
559 } | 560 } |
560 | 561 |
561 typedef struct gif_memory_storage | 562 typedef struct gif_memory_storage |
840 if (data->png_ptr) | 841 if (data->png_ptr) |
841 png_destroy_read_struct (&(data->png_ptr), &(data->info_ptr), (png_infopp)NULL); | 842 png_destroy_read_struct (&(data->png_ptr), &(data->info_ptr), (png_infopp)NULL); |
842 if (data->instream) | 843 if (data->instream) |
843 retry_fclose (data->instream); | 844 retry_fclose (data->instream); |
844 | 845 |
845 if (data->eimage) xfree(data->eimage); | 846 if (data->eimage) |
847 xfree(data->eimage, UChar_Binary *); | |
846 | 848 |
847 return Qnil; | 849 return Qnil; |
848 } | 850 } |
849 | 851 |
850 static void | 852 static void |
1021 info_ptr->text[i].text); | 1023 info_ptr->text[i].text); |
1022 } | 1024 } |
1023 } | 1025 } |
1024 #endif | 1026 #endif |
1025 | 1027 |
1026 xfree (row_pointers); | 1028 xfree (row_pointers, UChar_Binary **); |
1027 } | 1029 } |
1028 | 1030 |
1029 /* now instantiate */ | 1031 /* now instantiate */ |
1030 MAYBE_DEVMETH (DOMAIN_XDEVICE (ii->domain), | 1032 MAYBE_DEVMETH (DOMAIN_XDEVICE (ii->domain), |
1031 init_image_instance_from_eimage, | 1033 init_image_instance_from_eimage, |
1081 if (data->tiff) | 1083 if (data->tiff) |
1082 { | 1084 { |
1083 TIFFClose(data->tiff); | 1085 TIFFClose(data->tiff); |
1084 } | 1086 } |
1085 if (data->eimage) | 1087 if (data->eimage) |
1086 xfree (data->eimage); | 1088 xfree (data->eimage, UChar_Binary *); |
1087 | 1089 |
1088 return Qnil; | 1090 return Qnil; |
1089 } | 1091 } |
1090 | 1092 |
1091 typedef struct tiff_memory_storage | 1093 typedef struct tiff_memory_storage |