diff options
author | Thomas White <taw@physics.org> | 2021-04-01 14:43:42 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-04-01 15:08:14 +0200 |
commit | 7c311af2d01b1cbab8116adf68910424d162f470 (patch) | |
tree | dadcb019f4dd32e6f491e0f3733325eecb73e201 /src/gui_backend_local.c | |
parent | 211535aa1d46b4f1ec1a5976be60a4c135605b90 (diff) |
Local BE: Fix ownership of workdir GFile
Diffstat (limited to 'src/gui_backend_local.c')
-rw-r--r-- | src/gui_backend_local.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui_backend_local.c b/src/gui_backend_local.c index 545ac776..0afa894b 100644 --- a/src/gui_backend_local.c +++ b/src/gui_backend_local.c @@ -163,7 +163,7 @@ static struct local_job *start_local_job(char **args, job = malloc(sizeof(struct local_job)); if ( job == NULL ) return NULL; - job->workdir = workdir_file; + job->workdir = g_file_dup(workdir_file); job->type = type; STATUS("Running program: "); @@ -572,6 +572,7 @@ static void *run_indexing(const char *job_title, streams, 1); } } + g_object_unref(workdir); return job; } |