]> www.fi.muni.cz Git - evince.git/commitdiff
Fix a double free
authorMarco Pesenti Gritti <mpg@redhat.com>
Tue, 31 May 2005 14:39:19 +0000 (14:39 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Tue, 31 May 2005 14:39:19 +0000 (14:39 +0000)
2005-05-31  Marco Pesenti Gritti <mpg@redhat.com>

        * ps/ps-document.c: (ps_document_get_info):

        Fix a double free

ChangeLog
ps/ps-document.c

index 1ec00e8c1908f4692f895e949d4b6d374f761676..37f0e4fef782825893f6e52a3dd9ec7617386f5a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-05-31  Marco Pesenti Gritti <mpg@redhat.com>
+
+       * ps/ps-document.c: (ps_document_get_info):
+
+       Fix a double free
+
 2005-05-31  Nikolay V. Shmyrev  <nshmyrev@yandex.ru>
 
        * backend/ev-page-cache.c: (ev_page_cache_init),
index a155207b1b58f85a6424817cb808ffc9143fbb8e..a38fc6bfb5b5ac0ee18aed54ce9f76dff7b92c54 100644 (file)
@@ -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;
 }