ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cv/mgflib/xf.c
(Generate patch)

Comparing ray/src/cv/mgflib/xf.c (file contents):
Revision 1.14 by greg, Fri Feb 28 20:11:30 2003 UTC vs.
Revision 1.15 by greg, Fri Jan 14 05:46:12 2011 UTC

# Line 129 | Line 129 | char   **av;
129                          newav[ac+i] = xf_argend[i-xf_context->xac];
130                  *(xf_argend = newav + spec->xac) = NULL;
131                  if (xf_argbeg != NULL)
132 <                        free((MEM_PTR)xf_argbeg);
132 >                        free(xf_argbeg);
133                  xf_argbeg = newav;
134          }
135          cp = (char *)(spec + 1);        /* use memory allocated above */
# Line 154 | Line 154 | free_xf(spec)                  /* free a transform */
154   register XF_SPEC        *spec;
155   {
156          if (spec->xarr != NULL)
157 <                free((MEM_PTR)spec->xarr);
158 <        free((MEM_PTR)spec);
157 >                free(spec->xarr);
158 >        free(spec);
159   }
160  
161  
# Line 209 | Line 209 | xf_clear()                     /* clear transform stack */
209          register XF_SPEC        *spec;
210  
211          if (xf_argbeg != NULL) {
212 <                free((MEM_PTR)xf_argbeg);
212 >                free(xf_argbeg);
213                  xf_argbeg = xf_argend = NULL;
214          }
215          while ((spec = xf_context) != NULL) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines