BFont doesn't have a destructor

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1629 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
beveloper
2002-10-23 20:08:17 +00:00
parent 55f14ba4d9
commit 3bb5ee98f7
2 changed files with 7 additions and 2 deletions
+4 -2
View File
@@ -140,9 +140,11 @@ class BFontPrivate;
class BFont { class BFont {
public: public:
BFont(void); BFont(void);
BFont(const BFont &font); BFont(const BFont &font);
BFont(const BFont *font); BFont(const BFont *font);
/* /* XXX TODO: R5 doesn't have a destructor, so we get linking errors when objects compiled with old headers with the new library
~BFont(void); ~BFont(void);
*/
status_t SetFamilyAndStyle(const font_family family, status_t SetFamilyAndStyle(const font_family family,
const font_style style); const font_style style);
+3
View File
@@ -135,10 +135,13 @@ BFont::BFont(const BFont *font)
} }
/* XXX TODO: R5 doesn't have a destructor, so we get linking errors when objects compiled with old headers with the new library
(but now we leak memory here)
BFont::~BFont(void) BFont::~BFont(void)
{ {
delete private_data; delete private_data;
} }
*/
status_t BFont::SetFamilyAndStyle(const font_family family, const font_style style) status_t BFont::SetFamilyAndStyle(const font_family family, const font_style style)
{ {