From e956d7068285d7fe940a9328a5b510211b044664 Mon Sep 17 00:00:00 2001 From: DarkWyrm Date: Fri, 3 Oct 2003 23:28:05 +0000 Subject: [PATCH] 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 --- headers/private/app/PortLink.h | 2 +- headers/private/app/PortMessage.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/headers/private/app/PortLink.h b/headers/private/app/PortLink.h index f9c6889fc3..3628256344 100644 --- a/headers/private/app/PortLink.h +++ b/headers/private/app/PortLink.h @@ -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); diff --git a/headers/private/app/PortMessage.h b/headers/private/app/PortMessage.h index 687979f16e..a22a1b8571 100644 --- a/headers/private/app/PortMessage.h +++ b/headers/private/app/PortMessage.h @@ -28,6 +28,7 @@ #define PORTMESSAGE_H_ #include +#include 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