Mmm I may be completely wrong here, but shouldn't ```m_root``` be unref-ed first?