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



commit 18eb795f751757f22c8eac4719ff677cad37df95
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]