From 2fd2f4c9e0446e7da8852e7e556e64704987baac Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 24 May 2008 18:42:15 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20504706=20=E2=80=93=20wrong=20deallocator?= =?UTF-8?q?=20used=20for=20GError=20in=20gailtextview.c?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2008-05-24 Matthias Clasen Bug 504706 – wrong deallocator used for GError in gailtextview.c * gailtextview.c: Don't use g_free on a GError. svn path=/trunk/; revision=20136 --- modules/other/gail/ChangeLog | 6 ++++++ modules/other/gail/gailtextview.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/other/gail/ChangeLog b/modules/other/gail/ChangeLog index 993b9f0608..3f2fca11a0 100644 --- a/modules/other/gail/ChangeLog +++ b/modules/other/gail/ChangeLog @@ -1,3 +1,9 @@ +2008-05-24 Matthias Clasen + + Bug 504706 – wrong deallocator used for GError in gailtextview.c + + * gailtextview.c: Don't use g_free on a GError. + 2008-04-02 Li Yuan * gailbutton.c: (idle_do_action): diff --git a/modules/other/gail/gailtextview.c b/modules/other/gail/gailtextview.c index 726aac16c0..ea86ea7a73 100644 --- a/modules/other/gail/gailtextview.c +++ b/modules/other/gail/gailtextview.c @@ -1736,7 +1736,7 @@ static GIOChannel* gail_streamable_content_get_stream (AtkStreamable else g_message (err->message); if (err) { g_message ("", tname); - g_free (err); + g_error_free (err); } /* make sure the file is removed on unref of the giochannel */ else {