** Description changed:

  Impact: there is a memory leak when using pango_layout_get_extents
  
  Development Fix: the bug has been fixed in quantal
  
  Stable Fix: simple patch accepted upstream at
  https://bugzilla.gnome.org/show_bug.cgi?id=678059
  
  Regression Potential: could potentially cause other bugs
  
  Test Case:
- - TODO
+ - Run the following code in a terminal (feel free to check the result of the 
GET first)
+ {{{
+ for size in 100 200 500; do
+   echo With size $size
+   GET https://bugzilla.gnome.org/attachment.cgi?id=216360 | sed s/100/$size/ 
> pango_leak.c 
+   gcc pango_leak.c `pkg-config --cflags --libs pangoft2` -o pango_leak
+   valgrind ./pango_leak 2>&1 | grep ' lost' | cut -d" " -f 2-
+ done;
+ }}}
  
- ...
+ Observe that before the fix the possibly lost reported grows
+ significantly which different loop counts, and that after the fix it
+ does not.
+ 
+ -- End test case
  
  Valgrind found a leak deep in the nested calls for
  'pango_layout_get_extents'.
  
  It appears to be not freeing something.
  
  4,224 (512 direct, 3,712 indirect) bytes in 1 blocks are definitely lost
  1,904 (768 direct, 1,136 indirect) bytes in 1 blocks are definitely lost
  1,904 (768 direct, 1,136 indirect) bytes in 1 blocks are definitely lost
  
  This from an hour long valgrind run.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to pango1.0 in Ubuntu.
https://bugs.launchpad.net/bugs/837145

Title:
  Memory leak in pango_layout_get_extents

To manage notifications about this bug go to:
https://bugs.launchpad.net/pango/+bug/837145/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to