diff options
Diffstat (limited to 'src/analysis')
-rw-r--r-- | src/analysis/loading.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/analysis/loading.c b/src/analysis/loading.c index 700a03f..f8dc2c3 100644 --- a/src/analysis/loading.c +++ b/src/analysis/loading.c @@ -368,9 +368,14 @@ void g_delayed_study_preload_only(GDelayedStudy *dstudy) void qck_study_new_content(GBinContent *content, ProjectContentState state) { + GStudyProject *project; /* Projet courant */ GDelayedStudy *dstudy; /* Etude à conduire */ - dstudy = g_delayed_study_new(get_current_project(), content, state); + project = get_current_project(); + + dstudy = g_delayed_study_new(project, content, state); + + g_object_unref(G_OBJECT(project)); study_new_content(dstudy); |