--- load-graph.cpp      2008-01-03 14:46:36.000000000 +0000
+++ load-graph2.cpp     2008-01-03 14:47:03.000000000 +0000
@@ -264,10 +264,6 @@
 
        /* draw the graph */
        if (g->render_counter == 0) {
-               if (g->background_buffer != NULL) {
-                       cairo_surface_destroy(g->background_buffer);
-                       g->background_buffer = NULL;
-               }
                cairo_surface_destroy(g->graph_buffer);
                cairo_t* tmp_cr;
 
@@ -845,6 +841,7 @@
                                                load_graph_update,
                                                g);
        }
+       g->background_buffer = NULL;
 }
 
 GdkColor*

