diff options
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-web-view.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c index e98e13d28..cf1efe31a 100644 --- a/embed/ephy-web-view.c +++ b/embed/ephy-web-view.c @@ -2070,9 +2070,6 @@ get_file_content_as_base64 (const char *path) NULL, NULL); image_type = g_file_info_get_content_type (file_info); - g_object_unref (file); - g_object_unref (file_info); - g_file_get_contents (path, &image_raw, &len, NULL); image_data = g_base64_encode ((guchar *) image_raw, len); image64 = g_strdup_printf ("data:%s;base64,%s", image_type, image_data); @@ -2080,6 +2077,9 @@ get_file_content_as_base64 (const char *path) g_free (image_raw); g_free (image_data); + g_object_unref (file); + g_object_unref (file_info); + return image64; } |