Interesting, so I have to use pointer for SGObject. Okay, I'll add the ref and unref for m_fg.