The SSH host key has changed on 8 April, 2022 to this one: SHA256:573uTBSeh74kvOo0HJXi5ijdzRm8me27suzNEDlGyrQ

Protect Gswe*Data from NULL pointers

timestamp-validity
gitolite tester 8 years ago
parent c461b743e4
commit 5b7124aca5
  1. 4
      src/gswe-antiscion-data.c
  2. 4
      src/gswe-aspect-data.c
  3. 4
      src/gswe-moon-phase-data.c
  4. 4
      src/gswe-planet-data.c

@ -220,6 +220,10 @@ gswe_antiscion_data_ref(GsweAntiscionData *antiscion_data)
void
gswe_antiscion_data_unref(GsweAntiscionData *antiscion_data)
{
if (antiscion_data == NULL) {
return;
}
if (--antiscion_data->refcount == 0) {
gswe_antiscion_data_free(antiscion_data);
}

@ -203,6 +203,10 @@ gswe_aspect_data_ref(GsweAspectData *aspect_data)
void
gswe_aspect_data_unref(GsweAspectData *aspect_data)
{
if (aspect_data == NULL) {
return;
}
if (--aspect_data->refcount == 0) {
gswe_aspect_data_free(aspect_data);
}

@ -88,6 +88,10 @@ gswe_moon_phase_data_ref(GsweMoonPhaseData *moon_phase_data)
void
gswe_moon_phase_data_unref(GsweMoonPhaseData *moon_phase_data)
{
if (moon_phase_data == NULL) {
return;
}
if (--moon_phase_data->refcount == 0) {
g_free(moon_phase_data);
}

@ -99,6 +99,10 @@ gswe_planet_data_ref(GswePlanetData *planet_data)
void
gswe_planet_data_unref(GswePlanetData *planet_data)
{
if (planet_data == NULL) {
return;
}
if (--planet_data->refcount == 0) {
gswe_planet_data_free(planet_data);
}

Loading…
Cancel
Save