sahib/glyr — pull request #22 by emillon (2012-04-01 21:19:03+00:00)
Title: Allocate strings in the correct heap

Hello,

While testing the latest glyr with gmpc, it segfaulted in `prepare_string`. I applied this changes and it works fine now :

`curl_easy_escape` returns a string allocated within libcurl. For consistency, it
should be put in a glib-managed buffer to avoid a segfault at a later `g_free`.

This patch copies the temporary buffer into a glib buffer.

Thanks !