Replaces an invalid g_free by g_object_unref