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

Comparing ray/src/rt/rview.c (file contents):
Revision 2.6 by greg, Thu Jan 16 12:05:26 1992 UTC vs.
Revision 2.7 by greg, Wed Sep 9 22:19:42 1992 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1987 Regents of the University of California */
1 > /* Copyright (c) 1992 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 311 | Line 311 | rsample()                      /* sample the image */
311          if (rl == NULL)
312                  return;
313          pl = (PNODE **)malloc(xsiz*sizeof(PNODE *));
314 <        if (pl == NULL)
314 >        if (pl == NULL) {
315 >                free((char *)rl);
316                  return;
317 +        }
318          /*
319           * Initialize the bottom row.
320           */
# Line 402 | Line 404 | int  pd;
404                          return(0);
405                  /*
406                   *  The following paint order can leave a black pixel
407 <                 *  when redraw() is called in (*dev->paintr)().
407 >                 *  if redraw() is called in (*dev->paintr)().
408                   */
409                  if (p->x >= mx && p->y >= my)
410                          pcopy(p, p->kid+UR);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines