From caaf96b2c39a0f3c39f6e87d67b628281410c858 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 2 Jul 2020 12:12:29 +0200 Subject: Use g_free where appropriate --- src/crystfel_gui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/crystfel_gui.c b/src/crystfel_gui.c index c83cfbec..d0b6e1cc 100644 --- a/src/crystfel_gui.c +++ b/src/crystfel_gui.c @@ -252,10 +252,10 @@ static void finddata_response_sig(GtkWidget *dialog, gint resp, crystfel_image_view_set_image(CRYSTFEL_IMAGE_VIEW(proj->imageview), NULL, NULL); - free(proj->geom_filename); + g_free(proj->geom_filename); proj->geom_filename = geom_filename; - free(proj->data_top_folder); + g_free(proj->data_top_folder); proj->data_top_folder = g_file_get_path(top); crystfel_image_view_set_datatemplate(CRYSTFEL_IMAGE_VIEW(proj->imageview), -- cgit v1.2.3