From 595022025f112c30cec8fa9cbda0c609045db300 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 31 May 2005 14:39:19 +0000 Subject: [PATCH] Fix a double free 2005-05-31 Marco Pesenti Gritti * ps/ps-document.c: (ps_document_get_info): Fix a double free --- ChangeLog | 6 ++++++ ps/ps-document.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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; } -- 2.43.5