at-spi r1022 - in trunk: . libspi
- From: liyuan svn gnome org
- To: svn-commits-list gnome org
- Subject: at-spi r1022 - in trunk: . libspi
- Date: Tue, 1 Jul 2008 09:38:57 +0000 (UTC)
Author: liyuan
Date: Tue Jul 1 09:38:57 2008
New Revision: 1022
URL: http://svn.gnome.org/viewvc/at-spi?rev=1022&view=rev
Log:
2008-07-01 Li Yuan <li yuan sun com>
* libspi/text.c: (impl_getBoundedRanges):
Bug #524806. Fix memory leak in impl_getBoundedRanges.
Patch from Mike Gorse <mgorse novell com>.
Modified:
trunk/ChangeLog
trunk/libspi/text.c
Modified: trunk/libspi/text.c
==============================================================================
--- trunk/libspi/text.c (original)
+++ trunk/libspi/text.c Tue Jul 1 09:38:57 2008
@@ -511,6 +511,7 @@
const Accessibility_TEXT_CLIP_TYPE yClipType,
CORBA_Environment * ev)
{
+ Accessibility_Text_RangeList *rv;
AtkText *text = get_text_from_servant (servant);
AtkTextRange **range_list = NULL;
AtkTextRectangle rect;
@@ -525,7 +526,9 @@
(AtkTextClipType) xClipType,
(AtkTextClipType) yClipType);
- return _spi_text_range_seq_from_atkrangelist (range_list);
+ rv = _spi_text_range_seq_from_atkrangelist (range_list);
+ atk_text_free_ranges(range_list);
+ return rv;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]