Blob Blame History Raw
diff -up gkrellsun-1.0.0/src20/gkrellsun.c~ gkrellsun-1.0.0/src20/gkrellsun.c
--- gkrellsun-1.0.0/src20/gkrellsun.c~	2016-02-27 11:40:46.000000000 +0100
+++ gkrellsun-1.0.0/src20/gkrellsun.c	2016-02-27 11:48:43.550450040 +0100
@@ -1140,7 +1140,10 @@ cb_plugin_disabled( void )
 
    save_sun_data();
 
-   if (textOptions.fontDesc) pango_font_description_free (textOptions.fontDesc);
+   if (textOptions.fontDesc) {
+      pango_font_description_free (textOptions.fontDesc);
+      textOptions.fontDesc = NULL;
+   }
 
    /* This happens when user quits X Windows and gkrellm2 is still running */
    if (colormap == NULL)
@@ -1160,7 +1163,6 @@ cb_plugin_disabled( void )
    }
    colorsCreated = FALSE;
    colormap = NULL;
-/*   textOptions.fontDesc = NULL;*/
 }
 
 /* Calculate height and width of text given a Pango Font */