[epiphany/pgriffis/web-extension/get-views: 14/14] WebExtension: Fix double-free in JSON usage




commit 77e504533dd9133c59e515d949bc973a6020fca1
Author: Patrick Griffis <pgriffis igalia com>
Date:   Mon May 30 12:51:53 2022 -0500

    WebExtension: Fix double-free in JSON usage

 embed/web-process-extension/ephy-webextension-common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/embed/web-process-extension/ephy-webextension-common.c 
b/embed/web-process-extension/ephy-webextension-common.c
index e94b3211b..89ef48d38 100644
--- a/embed/web-process-extension/ephy-webextension-common.c
+++ b/embed/web-process-extension/ephy-webextension-common.c
@@ -27,7 +27,7 @@ js_getmessage (const char *message,
                gpointer    user_data)
 {
   JsonObject *translations = user_data;
-  g_autoptr (JsonObject) translation = NULL;
+  JsonObject *translation = NULL;
 
   if (!translations)
     return g_strdup (message);


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