[epiphany] ephy-web-view: plug leak



commit 7754542318967d984b563975110a5c3b7873db2e
Author: Xan Lopez <xan igalia com>
Date:   Thu Dec 15 01:07:27 2011 +0100

    ephy-web-view: plug leak
    
    ==16675== 83 (64 direct, 19 indirect) bytes in 1 blocks are definitely lost in loss record 10,060 of 13,509
    ==16675==    at 0x4A074CD: malloc (vg_replace_malloc.c:236)
    ==16675==    by 0x70C6F17: standard_malloc (gmem.c:85)
    ==16675==    by 0x70C6FA0: g_malloc (gmem.c:159)
    ==16675==    by 0x70DE86C: g_slice_alloc (gslice.c:1003)
    ==16675==    by 0x70DE8AB: g_slice_alloc0 (gslice.c:1029)
    ==16675==    by 0x6E2873D: soup_uri_new_with_base (soup-uri.c:177)
    ==16675==    by 0x6E29468: soup_uri_new (soup-uri.c:398)
    ==16675==    by 0x47D70F: load_status_cb (ephy-web-view.c:1906)

 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 f4c5c19..6e4fea2 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -1924,11 +1924,11 @@ load_status_cb (WebKitWebView *web_view,
                                                     G_CALLBACK (delete_web_app_cb), false,
                                                     NULL);
       }
-
-      if (uri)
-        soup_uri_free (uri);
     }
 
+    if (uri)
+      soup_uri_free (uri);
+
     break;
   }
   case WEBKIT_LOAD_FAILED:



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