[epiphany/gnome-3-32] web-app-utils: Fix crash when web app profile lacks .app file
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/gnome-3-32] web-app-utils: Fix crash when web app profile lacks .app file
- Date: Wed, 19 Jun 2019 17:47:42 +0000 (UTC)
commit 4111f158a9498898a27535fc68914738002f6631
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 64ace3fc3..715fd4ef1 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]