summaryrefslogtreecommitdiffstats
path: root/app/gfx/font.h
diff options
context:
space:
mode:
Diffstat (limited to 'app/gfx/font.h')
-rw-r--r--app/gfx/font.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/gfx/font.h b/app/gfx/font.h
index 80a85ec..6be42ee 100644
--- a/app/gfx/font.h
+++ b/app/gfx/font.h
@@ -169,7 +169,6 @@ class Font {
int ave_char_width,
int style,
int dlu_base_x);
- ~HFontRef();
// Accessors
HFONT hfont() const { return hfont_; }
@@ -181,6 +180,10 @@ class Font {
const std::wstring& font_name() const { return font_name_; }
private:
+ friend class base::RefCounted<HFontRef>;
+
+ ~HFontRef();
+
const HFONT hfont_;
const int height_;
const int baseline_;