Eliminated a memory-allocation bug

Added a sensible workaround for BSession message code packaging


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4936 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm 2003-10-03 23:28:05 +00:00
parent b8b711a00d
commit e956d70682
2 changed files with 4 additions and 2 deletions

View File

@ -11,7 +11,7 @@ class PortLink
public:
PortLink(port_id port);
PortLink(const PortLink &link);
virtual ~PortLink(void) { }
virtual ~PortLink(void);
void SetOpCode(int32 code);

View File

@ -28,6 +28,7 @@
#define PORTMESSAGE_H_
#include <OS.h>
#include <ServerProtocol.h>
class PortMessage
{
@ -67,12 +68,13 @@ public:
}
void Rewind(void);
void BSessionWorkaround(void);
private:
int32 _code;
uint8 *_buffer;
ssize_t _buffersize;
uint8 *_index;
bool is_session_msg;
};
#endif