| 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"; |
| 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 |
|
*/ |
| 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); |