Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > VSs > VSs__jpeg_decoder__Proj
diff VSs_tinyjpeg/tinyjpeg.c @ 2:a52de05d2e2b
changed malloc to VMS malloc
| author | Nina Engelhardt <nengel@mailbox.tu-berlin.de> |
|---|---|
| date | Tue, 10 Jul 2012 11:42:46 +0200 |
| parents | 7e13c9ecc89c |
| children |
line diff
1.1 --- a/VSs_tinyjpeg/tinyjpeg.c Thu Jul 05 04:15:38 2012 -0700 1.2 +++ b/VSs_tinyjpeg/tinyjpeg.c Tue Jul 10 11:42:46 2012 +0200 1.3 @@ -440,9 +440,10 @@ 1.4 { 1.5 struct jdec_private *priv; 1.6 1.7 - priv = (struct jdec_private *)calloc(1, sizeof(struct jdec_private)); 1.8 + priv = (struct jdec_private *)VMS_App__malloc(1* sizeof(struct jdec_private)); 1.9 if (priv == NULL) 1.10 return NULL; 1.11 + memset(priv,0,sizeof(struct jdec_private)); 1.12 return priv; 1.13 } 1.14 1.15 @@ -453,7 +454,7 @@ 1.16 */ 1.17 void tinyjpeg_free(struct jdec_private *priv) 1.18 { 1.19 - free(priv); 1.20 + VMS_App__free(priv); 1.21 } 1.22 1.23
