[gnome-builder] pipeline: clear cached directories when advancing build stage



commit 6fe679fe9d03ae59fcd261f5f50c587b7ab6b351
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jan 23 02:42:54 2018 -0800

    pipeline: clear cached directories when advancing build stage
    
    Before we call the next build stage, we want to clear any cached directory
    tracking used for error formats from the previous stage.

 src/libide/buildsystem/ide-build-pipeline.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/libide/buildsystem/ide-build-pipeline.c b/src/libide/buildsystem/ide-build-pipeline.c
index dfdd05ca3..9fa4b063f 100644
--- a/src/libide/buildsystem/ide-build-pipeline.c
+++ b/src/libide/buildsystem/ide-build-pipeline.c
@@ -1542,6 +1542,10 @@ ide_build_pipeline_tick_execute (IdeBuildPipeline *self,
   /* Clear any message from the previous stage */
   _ide_build_pipeline_set_message (self, NULL);
 
+  /* Clear cached directory enter/leave tracking */
+  g_clear_pointer (&self->errfmt_current_dir, g_free);
+  g_clear_pointer (&self->errfmt_top_dir, g_free);
+
   /* Short circuit now if the task was cancelled */
   if (g_task_return_error_if_cancelled (task))
     IDE_EXIT;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]