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:
2014-03-15 18:38:27 +01:00
parent e23c789ff0
commit 41a80ca365
5 changed files with 23 additions and 10 deletions

View File

@@ -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