[epiphany/gnome-40] pdf-handler: fix a leak



commit feb1a00984012794bda165b37df89cb2f01c4d3c
Author: Michael Catanzaro <mcatanzaro redhat com>
Date:   Tue Dec 14 16:45:53 2021 -0600

    pdf-handler: fix a leak
    
    Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1045>

 embed/ephy-pdf-handler.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/embed/ephy-pdf-handler.c b/embed/ephy-pdf-handler.c
index 871d2487a..da10b7e02 100644
--- a/embed/ephy-pdf-handler.c
+++ b/embed/ephy-pdf-handler.c
@@ -121,7 +121,7 @@ pdf_file_loaded (GObject      *source,
                  gpointer      user_data)
 {
   EphyPdfRequest *self = user_data;
-  GBytes *html_file;
+  g_autoptr (GBytes) html_file = NULL;
   g_autoptr (GError) error = NULL;
   g_autoptr (GString) html = NULL;
   g_autofree gchar *b64 = NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]