[Xfce4-commits] <xfce4-weather-plugin:master> Properly free geolocation and place structs.

Harald Judt noreply at xfce.org
Tue Nov 6 20:16:01 CET 2012


Updating branch refs/heads/master
         to a0b5e47cbc25b0894f30818ffb4683a72586caac (commit)
       from a025cef592166c06187fc025903dad73dc784cdf (commit)

commit a0b5e47cbc25b0894f30818ffb4683a72586caac
Author: Harald Judt <h.judt at gmx.at>
Date:   Tue Nov 6 20:14:49 2012 +0100

    Properly free geolocation and place structs.

 panel-plugin/weather-parsers.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/panel-plugin/weather-parsers.c b/panel-plugin/weather-parsers.c
index 091eba2..8206ce2 100644
--- a/panel-plugin/weather-parsers.c
+++ b/panel-plugin/weather-parsers.c
@@ -523,6 +523,7 @@ xml_geolocation_free(xml_geolocation *geo)
     g_free(geo->region_name);
     g_free(geo->latitude);
     g_free(geo->longitude);
+    g_slice_free(xml_geolocation, geo);
 }
 
 
@@ -535,4 +536,5 @@ xml_place_free(xml_place *place)
     g_free(place->lat);
     g_free(place->lon);
     g_free(place->display_name);
+    g_slice_free(xml_place, place);
 }


More information about the Xfce4-commits mailing list