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

Comparing ray/src/hd/rholo3.c (file contents):
Revision 3.28 by gwlarson, Sat Jan 9 09:17:10 1999 UTC vs.
Revision 3.29 by gwlarson, Sat Jan 9 19:48:28 1999 UTC

# Line 102 | Line 102 | register HDBEAMI       *hb;
102                          error(CONSISTENCY, "unregistered holodeck in dispbeam");
103          p->bi = hb->b;
104          disp_packet(p);                 /* display it */
105 +        if (n >= 1024) {                /* free ridiculous packets */
106 +                free((char *)p);
107 +                p = NULL; n = 0;
108 +        }
109   }
110  
111  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines