[Xfce4-commits] <xfce4-weather-plugin:master> Fix assertion when closing summary window.

Harald Judt noreply at xfce.org
Sun Dec 9 23:44:02 CET 2012


Updating branch refs/heads/master
         to abc52690c5c5bf6b4870c8b773625afde118f169 (commit)
       from f8f26779f3fd840ff22970d1ebfd8f9b2fd1ff66 (commit)

commit abc52690c5c5bf6b4870c8b773625afde118f169
Author: Harald Judt <h.judt at gmx.at>
Date:   Sun Dec 9 19:24:59 2012 +0100

    Fix assertion when closing summary window.

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

diff --git a/panel-plugin/weather.c b/panel-plugin/weather.c
index e04d484..95b4cb3 100644
--- a/panel-plugin/weather.c
+++ b/panel-plugin/weather.c
@@ -689,7 +689,8 @@ close_summary(GtkWidget *widget,
 {
     xfceweather_data *data = (xfceweather_data *) user_data;
 
-    summary_details_free(data->summary_details);
+    if (data->summary_details)
+        summary_details_free(data->summary_details);
     data->summary_details = NULL;
     data->summary_window = NULL;
 }


More information about the Xfce4-commits mailing list