Index: glib/poppler-page.cc =================================================================== RCS file: /cvs/poppler/poppler/glib/poppler-page.cc,v retrieving revision 1.43 diff -p -u -u -p -r1.43 poppler-page.cc --- glib/poppler-page.cc 28 Feb 2006 18:25:00 -0000 1.43 +++ glib/poppler-page.cc 8 Mar 2006 20:47:04 -0000 @@ -630,7 +630,7 @@ poppler_page_get_text (PopplerPage { TextOutputDev *text_dev; PDFDoc *doc; - GooString *sel_text = new GooString; + GooString *sel_text; double height, y1, y2; char *result; PDFRectangle pdf_selection; @@ -749,15 +749,12 @@ poppler_page_get_property (GObject *obje { PopplerPage *page = POPPLER_PAGE (object); GooString label; - char *utf8_label; switch (prop_id) { case PROP_LABEL: page->document->doc->getCatalog ()->indexToLabel (page->index, &label); - utf8_label = _poppler_goo_string_to_utf8(&label); - g_value_set_string (value, utf8_label); - g_free (utf8_label); + g_value_take_string (value, _poppler_goo_string_to_utf8(&label)); break; } }