aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/stats/statistics.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/stats/statistics.c')
-rw-r--r--src/plugins/stats/statistics.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/stats/statistics.c b/src/plugins/stats/statistics.c
index d9c17495..0af8cf90 100644
--- a/src/plugins/stats/statistics.c
+++ b/src/plugins/stats/statistics.c
@@ -327,13 +327,13 @@ static gint load_graph_expose(GtkWidget *widget,
327 return FALSE; 327 return FALSE;
328} 328}
329 329
330static void load_graph_stop (LoadGraph *g) { 330static void load_graph_stop (LoadGraph *g) {
331 if (!g)
332 return;
331 if (g->timer_index != -1) { 333 if (g->timer_index != -1) {
332 gtk_timeout_remove(g->timer_index); 334 gtk_timeout_remove(g->timer_index);
333 g->timer_index = -1; 335 g->timer_index = -1;
334 } 336 }
335 if (!g)
336 return;
337 g->draw = FALSE; 337 g->draw = FALSE;
338} 338}
339 339