--- rxvt-unicode/src/rxvtfont.h 2010/04/17 23:00:45 1.36 +++ rxvt-unicode/src/rxvtfont.h 2010/05/23 00:08:53 1.38 @@ -58,9 +58,13 @@ int x, int y, const text_t *text, int len, int fg, int bg) = 0; -}; -#define FONT_UNREF(f) do { (f)->clear (); delete (f); } while (0) + void unref () + { + clear (); + delete this; + } +}; struct rxvt_fallback_font; @@ -68,8 +72,8 @@ { char *fontdesc; - enum { fontCount = 7 }; // must be power-of-two - 1, also has to match RS_fontMask in rxvt.h - enum { firstFont = 2 }; // index of first font in set + enum { fontCount = 7 }; // must be power-of-two - 1, also has to match RS_fontMask in rxvt.h + enum { firstFont = 2 }; // index of first font in set rxvt_fontset (rxvt_term *term); ~rxvt_fontset ();