Fix leak on error variable
authorRicardo Mones <ricardo@mones.org>
Fri, 26 Jul 2019 10:51:13 +0000 (12:51 +0200)
committerRicardo Mones <ricardo@mones.org>
Fri, 26 Jul 2019 10:51:13 +0000 (12:51 +0200)
src/plugins/litehtml_viewer/lh_viewer.c

index bf6435b..2d2fc50 100644 (file)
@@ -103,6 +103,7 @@ static void lh_show_mimepart(MimeViewer *_viewer, const gchar *infile,
                if (error) {
                        g_warning("LH: failed mimepart conversion to UTF-8: %s", error->message);
                        g_free(string);
+                       g_error_free(error);
                        return;
                }
                debug_print("LH: successfully converted %" G_GSIZE_FORMAT " bytes\n", length);