Useless pointer checks before g_free...