From a23119894a24081989f1b081f6e6a0b2d3897acc Mon Sep 17 00:00:00 2001 From: Pavel Vasin Date: Thu, 13 Sep 2012 11:27:10 +0400 Subject: ephy-session: fix xmlChar* leak https://bugzilla.gnome.org/show_bug.cgi?id=683929 --- src/ephy-session.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/ephy-session.c b/src/ephy-session.c index 265a867c2..ac4c328a3 100644 --- a/src/ephy-session.c +++ b/src/ephy-session.c @@ -969,6 +969,9 @@ parse_embed (xmlNodePtr child, xmlChar* title = xmlGetProp (child, (const xmlChar *) "title"); confirm_before_recover (window, (char*) url, (char*) title); + + if (title) + xmlFree (title); } xmlFree (url); -- cgit v1.2.3