diff options
author | Thomas White <taw@physics.org> | 2021-04-01 11:38:44 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-04-01 15:08:14 +0200 |
commit | c5f62f02be9fd29eb3f8f7831ac98617752ea789 (patch) | |
tree | 3f6c2512ad9cc233328e30aaa2f6f0c27fcec16c /src/gui_backend_local.c | |
parent | bb383134d7f2d15578b77186f5b35e6b8c344b71 (diff) |
GUI: Clean up old tasks when infobar is removed
Diffstat (limited to 'src/gui_backend_local.c')
-rw-r--r-- | src/gui_backend_local.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui_backend_local.c b/src/gui_backend_local.c index 96d6c6b3..545ac776 100644 --- a/src/gui_backend_local.c +++ b/src/gui_backend_local.c @@ -79,6 +79,14 @@ struct local_job }; +static void free_task(void *job_priv) +{ + struct local_job *job = job_priv; + g_object_unref(job->workdir); + free(job->stderr_filename); +} + + static void watch_subprocess(GPid pid, gint status, gpointer vp) { struct local_job *job = vp; @@ -677,6 +685,7 @@ int make_local_backend(struct crystfel_backend *be) be->friendly_name = "Local (run on this computer)"; be->cancel_task = cancel_task; + be->free_task = free_task; be->task_status = get_task_status; be->make_indexing_parameters_widget = make_indexing_parameters_widget; |