From 177273085cda821163bcbfd67693ec0f19f94ff7 Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Wed, 26 Jul 2017 01:41:23 -0400 Subject: clock: stop segfault on removing applet when built in-process This works, but does leave part of it in RAM until the panel is restarted. No change in out-of-process builds --- applets/clock/clock.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'applets/clock') diff --git a/applets/clock/clock.c b/applets/clock/clock.c index 0a325b63..c081e3c3 100644 --- a/applets/clock/clock.c +++ b/applets/clock/clock.c @@ -763,6 +763,9 @@ destroy_clock (GtkWidget * widget, ClockData *cd) if (cd->calendar_popup) gtk_widget_destroy (cd->calendar_popup); +/* FIXME this stops segfaults on removing the clock applet when it is*/ +/* built in-process but leaves part of it in RAM until the panel is restarted */ +#ifndef CLOCK_INPROCESS cd->calendar_popup = NULL; g_free (cd->timeformat); @@ -790,6 +793,7 @@ destroy_clock (GtkWidget * widget, ClockData *cd) } g_free (cd); +#endif } static gboolean -- cgit v1.2.1