Commit 6fe679fe authored by Christian Hergert's avatar Christian Hergert
Browse files

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.
parent fa16cd61
...@@ -1542,6 +1542,10 @@ ide_build_pipeline_tick_execute (IdeBuildPipeline *self, ...@@ -1542,6 +1542,10 @@ ide_build_pipeline_tick_execute (IdeBuildPipeline *self,
/* Clear any message from the previous stage */ /* Clear any message from the previous stage */
_ide_build_pipeline_set_message (self, NULL); _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 */ /* Short circuit now if the task was cancelled */
if (g_task_return_error_if_cancelled (task)) if (g_task_return_error_if_cancelled (task))
IDE_EXIT; IDE_EXIT;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment