gtk+ r21471 - branches/gtk-2-14/modules/other/gail
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r21471 - branches/gtk-2-14/modules/other/gail
- Date: Sun, 21 Sep 2008 05:35:14 +0000 (UTC)
Author: matthiasc
Date: Sun Sep 21 05:35:14 2008
New Revision: 21471
URL: http://svn.gnome.org/viewvc/gtk+?rev=21471&view=rev
Log:
Plug a possible leak of textutils
Modified:
branches/gtk-2-14/modules/other/gail/ChangeLog
branches/gtk-2-14/modules/other/gail/gailbutton.c
branches/gtk-2-14/modules/other/gail/gailtextview.c
Modified: branches/gtk-2-14/modules/other/gail/gailbutton.c
==============================================================================
--- branches/gtk-2-14/modules/other/gail/gailbutton.c (original)
+++ branches/gtk-2-14/modules/other/gail/gailbutton.c Sun Sep 21 05:35:14 2008
@@ -392,6 +392,8 @@
{
const gchar *label_text;
+ if (button->textutil)
+ g_object_unref (button->textutil);
button->textutil = gail_text_util_new ();
label_text = gtk_label_get_text (GTK_LABEL (label));
gail_text_util_text_setup (button->textutil, label_text);
Modified: branches/gtk-2-14/modules/other/gail/gailtextview.c
==============================================================================
--- branches/gtk-2-14/modules/other/gail/gailtextview.c (original)
+++ branches/gtk-2-14/modules/other/gail/gailtextview.c Sun Sep 21 05:35:14 2008
@@ -220,6 +220,9 @@
if (buffer == NULL)
return;
+ if (gail_view->textutil)
+ g_object_unref (gail_view->textutil);
+
gail_view->textutil = gail_text_util_new ();
gail_text_util_buffer_setup (gail_view->textutil, buffer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]