[epiphany] web-app-utils: Fix crash when web app profile lacks .app file



commit bd597f5804e7e35c1aca1bec988ea97e4d8b5c8a
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Wed Jun 19 12:46:37 2019 -0500

    web-app-utils: Fix crash when web app profile lacks .app file
    
    We free with the wrong free function

 lib/ephy-web-app-utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lib/ephy-web-app-utils.c b/lib/ephy-web-app-utils.c
index 0db4955b8..cab7a1185 100644
--- a/lib/ephy-web-app-utils.c
+++ b/lib/ephy-web-app-utils.c
@@ -627,7 +627,7 @@ ephy_web_application_get_application_list_internal (gboolean only_legacy)
           if (g_file_test (app_file, G_FILE_TEST_EXISTS))
             applications = g_list_prepend (applications, app);
           else
-            g_object_unref (app);
+            g_free (app);
         } else
           applications = g_list_prepend (applications, app);
       }


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