Make gswe_antiscion_axis_info_free() to unref its start_sign
This is to fix a bug that makes the library crash when the timestamp or the chart changes.
This commit is contained in:
@@ -630,10 +630,10 @@ gswe_moment_add_planet(GsweMoment *moment, GswePlanet planet, GError **err)
|
||||
}
|
||||
|
||||
planet_data = gswe_planet_data_new();
|
||||
planet_data->planet_info = planet_info;
|
||||
planet_data->planet_info = gswe_planet_info_ref(planet_info);
|
||||
planet_data->revision = 0;
|
||||
|
||||
moment->priv->planet_list = g_list_append(moment->priv->planet_list, planet_data);
|
||||
moment->priv->planet_list = g_list_append(moment->priv->planet_list, gswe_planet_data_ref(planet_data));
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user