From: Marco Pesenti Gritti Date: Tue, 31 May 2005 14:39:19 +0000 (+0000) Subject: Fix a double free X-Git-Tag: EVINCE_0_3_3~305 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=595022025f112c30cec8fa9cbda0c609045db300;p=evince.git Fix a double free 2005-05-31 Marco Pesenti Gritti * ps/ps-document.c: (ps_document_get_info): Fix a double free --- diff --git a/ChangeLog b/ChangeLog index 1ec00e8c..37f0e4fe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-05-31 Marco Pesenti Gritti + + * ps/ps-document.c: (ps_document_get_info): + + Fix a double free + 2005-05-31 Nikolay V. Shmyrev * backend/ev-page-cache.c: (ev_page_cache_init), diff --git a/ps/ps-document.c b/ps/ps-document.c index a155207b..a38fc6bf 100644 --- a/ps/ps-document.c +++ b/ps/ps-document.c @@ -1371,7 +1371,7 @@ ps_document_get_info (EvDocument *document) info = g_new0 (EvDocumentInfo, 1); info->fields_mask = EV_DOCUMENT_INFO_TITLE; - info->title = ps->doc->title; + info->title = g_strdup (ps->doc->title); return info; }