--- rxvt-unicode/src/rxvtutil.C 2014/10/24 14:53:20 1.20 +++ rxvt-unicode/src/rxvtutil.C 2014/10/28 09:05:33 1.21 @@ -49,6 +49,19 @@ free (p); } +void * +operator new (size_t s) throw (std::bad_alloc) +{ + // TODO: use rxvt_malloc + return malloc (s); +} + +void +operator delete (void *p) throw () +{ + free (p); +} + static void *temp_buf; static uint32_t temp_len;