From bb2a4f7f04019c455da073d92327adf2d8a64211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Thu, 14 Mar 2019 21:39:12 +0100 Subject: [PATCH] Rename layer info deletion function --- layer/layer-info.c | 2 +- layer/layer-info.h | 4 ++-- main-window.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layer/layer-info.c b/layer/layer-info.c index 368bc90..a91b76f 100644 --- a/layer/layer-info.c +++ b/layer/layer-info.c @@ -2,7 +2,7 @@ #include "layer-info.h" -void delete_layer_info_struct(struct layer_info *info) +void layer_info_delete_struct(struct layer_info *info) { if (info) free(info); diff --git a/layer/layer-info.h b/layer/layer-info.h index f56040a..0da51b2 100644 --- a/layer/layer-info.h +++ b/layer/layer-info.h @@ -21,6 +21,6 @@ struct layer_info * @param info Struct to be deleted. * @note The layer_info::name Element has to be freed manually */ -void delete_layer_info_struct(struct layer_info *info); +void layer_info_delete_struct(struct layer_info *info); -#endif // _LAYERINFO_H_ +#endif // _LAYER_INFO_H_ diff --git a/main-window.c b/main-window.c index 1291609..1bf5d05 100644 --- a/main-window.c +++ b/main-window.c @@ -344,7 +344,7 @@ static void on_convert_clicked(gpointer button, gpointer user) gtk_widget_destroy(dialog); } ret_layer_destroy: - g_list_free_full(layer_list, (GDestroyNotify)delete_layer_info_struct); + g_list_free_full(layer_list, (GDestroyNotify)layer_info_delete_struct); } /**