From 4ca8825e02ff8959e3790df2d7818ecfb4134963 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Sun, 5 Jun 2022 13:29:38 +0200 Subject: Clean up Use gchar when memory is allocated through GLib. --- fiv-thumbnail.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fiv-thumbnail.c') diff --git a/fiv-thumbnail.c b/fiv-thumbnail.c index c6e1896..18be4eb 100644 --- a/fiv-thumbnail.c +++ b/fiv-thumbnail.c @@ -378,7 +378,7 @@ fiv_thumbnail_produce(GFile *target, FivThumbnailSize max_size, } static bool -check_wide_thumbnail_texts(GBytes *thum, const gchar *target, time_t mtime, +check_wide_thumbnail_texts(GBytes *thum, const char *target, time_t mtime, bool *sRGB) { gsize len = 0; @@ -409,7 +409,7 @@ check_wide_thumbnail_texts(GBytes *thum, const gchar *target, time_t mtime, static cairo_surface_t * read_wide_thumbnail( - const gchar *path, const gchar *uri, time_t mtime, GError **error) + const char *path, const char *uri, time_t mtime, GError **error) { gchar *thumbnail_uri = g_filename_to_uri(path, NULL, error); if (!thumbnail_uri) @@ -447,7 +447,7 @@ read_wide_thumbnail( static cairo_surface_t * read_png_thumbnail( - const gchar *path, const gchar *uri, time_t mtime, GError **error) + const char *path, const char *uri, time_t mtime, GError **error) { cairo_surface_t *surface = fiv_io_open_png_thumbnail(path, error); if (!surface) -- cgit v1.2.3