Fix const warning in g_free