* fhandler_clipboard.cc (fhandler_dev_clipboard::close): Set membuffer to NULL.
(fhandler_dev_clipboard::fixup_after_exec): Don't call close here. Just set variables directly.
This commit is contained in:
parent
d08916dade
commit
a3c024d6ea
|
@ -1,3 +1,10 @@
|
|||
2005-07-27 Christopher Faylor <cgf@timesys.com>
|
||||
|
||||
* fhandler_clipboard.cc (fhandler_dev_clipboard::close): Set membuffer
|
||||
to NULL.
|
||||
(fhandler_dev_clipboard::fixup_after_exec): Don't call close here.
|
||||
Just set variables directly.
|
||||
|
||||
2005-07-25 Christopher Faylor <cgf@timesys.com>
|
||||
|
||||
* include/byteswap.h: New file.
|
||||
|
|
|
@ -264,7 +264,10 @@ fhandler_dev_clipboard::close ()
|
|||
eof = true;
|
||||
pos = 0;
|
||||
if (membuffer)
|
||||
free (membuffer);
|
||||
{
|
||||
free (membuffer);
|
||||
membuffer = NULL;
|
||||
}
|
||||
msize = 0;
|
||||
}
|
||||
return 0;
|
||||
|
@ -273,5 +276,7 @@ fhandler_dev_clipboard::close ()
|
|||
void
|
||||
fhandler_dev_clipboard::fixup_after_exec ()
|
||||
{
|
||||
close ();
|
||||
eof = false;
|
||||
pos = msize = 0;
|
||||
membuffer = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue