mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
need a destructor to fix a major file handle leak!
This commit is contained in:
parent
05ff620572
commit
08693413e8
@ -26,6 +26,16 @@ DatagramInputFile() {
|
||||
_owns_in = false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: DatagramInputFile::Destructor
|
||||
// Access: Published
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE DatagramInputFile::
|
||||
~DatagramInputFile() {
|
||||
close();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: DatagramInputFile::open
|
||||
// Access: Published
|
||||
|
@ -31,6 +31,7 @@
|
||||
class EXPCL_PANDA_PUTIL DatagramInputFile : public DatagramGenerator {
|
||||
PUBLISHED:
|
||||
INLINE DatagramInputFile();
|
||||
INLINE ~DatagramInputFile();
|
||||
|
||||
bool open(const FileReference *file);
|
||||
INLINE bool open(const Filename &filename);
|
||||
|
@ -26,6 +26,16 @@ DatagramOutputFile() {
|
||||
_owns_out = false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: DatagramOutputFile::Destructor
|
||||
// Access: Public
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE DatagramOutputFile::
|
||||
~DatagramOutputFile() {
|
||||
close();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: DatagramOutputFile::open
|
||||
// Access: Published
|
||||
|
@ -30,6 +30,7 @@
|
||||
class EXPCL_PANDA_PUTIL DatagramOutputFile : public DatagramSink {
|
||||
public:
|
||||
INLINE DatagramOutputFile();
|
||||
INLINE ~DatagramOutputFile();
|
||||
|
||||
bool open(const FileReference *file);
|
||||
INLINE bool open(const Filename &filename);
|
||||
|
Loading…
x
Reference in New Issue
Block a user