summaryrefslogtreecommitdiff
path: root/applets/clock
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2017-07-26 01:41:23 -0400
committerlukefromdc <[email protected]>2017-08-13 14:37:24 -0400
commit177273085cda821163bcbfd67693ec0f19f94ff7 (patch)
tree2f8424c4bc607b0b6af194ca83849d8f5111e6e6 /applets/clock
parent1e1510a34b23fe876b7081af997b0d7446acde78 (diff)
downloadmate-panel-177273085cda821163bcbfd67693ec0f19f94ff7.tar.bz2
mate-panel-177273085cda821163bcbfd67693ec0f19f94ff7.tar.xz
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
Diffstat (limited to 'applets/clock')
-rw-r--r--applets/clock/clock.c4
1 files changed, 4 insertions, 0 deletions
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