debugging help
This commit is contained in:
parent
3fd51250be
commit
148f25d351
3 changed files with 8 additions and 3 deletions
|
|
@ -231,6 +231,9 @@ freeimage(Image *i)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
if(i == screen)
|
||||||
|
abort();
|
||||||
|
|
||||||
ret = _freeimage1(i);
|
ret = _freeimage1(i);
|
||||||
free(i);
|
free(i);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
|
||||||
|
|
@ -202,7 +202,7 @@ bufimage(Display *d, int n)
|
||||||
{
|
{
|
||||||
uchar *p;
|
uchar *p;
|
||||||
|
|
||||||
if(n<0 || n>d->bufsize){
|
if(n<0 || d == nil || n>d->bufsize){
|
||||||
abort();
|
abort();
|
||||||
werrstr("bad count in bufimage");
|
werrstr("bad count in bufimage");
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
|
|
@ -137,8 +137,10 @@ getwindow(Display *d, int ref)
|
||||||
Image *i;
|
Image *i;
|
||||||
Image *oi;
|
Image *oi;
|
||||||
|
|
||||||
if(_x.destroyed)
|
if(_x.destroyed){
|
||||||
postnote(PNGROUP, getpgrp(), "hangup");
|
postnote(PNGROUP, getpgrp(), "hangup");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
if(xreplacescreenimage() == 0)
|
if(xreplacescreenimage() == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue