[epiphany] Fix crash in about:memory



commit 664efd351760bb9780ec1540b02358f899ec2e19
Author: Jan-Michael Brummer <jan brummer tabos org>
Date:   Thu Feb 20 22:06:48 2020 +0100

    Fix crash in about:memory
    
    Fixes: https://gitlab.gnome.org/GNOME/epiphany/issues/1115

 lib/ephy-smaps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lib/ephy-smaps.c b/lib/ephy-smaps.c
index 5ec28a97d..0e229ccb6 100644
--- a/lib/ephy-smaps.c
+++ b/lib/ephy-smaps.c
@@ -252,7 +252,7 @@ static void ephy_smaps_pid_to_html (EphySMaps  *smaps,
       goto out;
 
     g_regex_match (smaps->detail, line, 0, &match_info);
-    if (g_match_info_matches (match_info)) {
+    if (vma && g_match_info_matches (match_info)) {
       char *name = g_match_info_fetch (match_info, 1);
       char **size = NULL;
 


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