Bug#290538: libpango1.0-dev: memory leak in pango_layout_get_extents()
Subject: libpango1.0-dev: memory leak in pango_layout_get_extents() Package: libpango1.0-dev Version: 1.6.0-3 Severity: important *** Please type your report below this line *** The following code snippet demonstrates the memory leak. Defining DO_LEAK enables the leak: - #include #include #include #include int main(int argc, char *argv[]) { PangoContext *context; PangoFontMap *fontmap=NULL; PangoLayout *layout; int dpi = 96; g_type_init(); if (g_file_test("./pangorc", G_FILE_TEST_EXISTS)) putenv("PANGO_RC_FILE=./pangorc"); while (1) { /* create a font map */ fontmap = pango_ft2_font_map_new(); pango_ft2_font_map_set_resolution(PANGO_FT2_FONT_MAP(fontmap),dpi,dpi); /* create a context */ context = pango_ft2_font_map_create_context(PANGO_FT2_FONT_MAP(fontmap)); /* free the fontmap */ g_object_unref(fontmap); /* make a layout */ layout = pango_layout_new(context); #ifdef DO_LEAK PangoRectangle logical_rect; pango_layout_get_extents(layout, NULL, &logical_rect); #endif /* free the layout */ g_object_unref(layout); /* free the context */ g_object_unref(context); } return EXIT_SUCCESS; } --- -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.7 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages libpango1.0-dev depends on: ii libfontconfig1-dev2.2.3-4generic font configuration library ii libfreetype6-dev 2.1.7-2.3 FreeType 2 font engine, developmen ii libglib2.0-dev2.4.8-1Development files for the GLib lib ii libpango1.0-0 1.6.0-3Layout and rendering of internatio ii libx11-dev4.3.0.dfsg.1-8 X Window System protocol client li ii libxft-dev2.1.2-6FreeType-based font drawing librar ii libxrender-dev0.8.3-7X Rendering Extension client libra ii pkg-config0.15.0-4 Manage compile and link flags for ii xlibs-dev 4.3.0.dfsg.1-8 X Window System client library dev -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#381052: expect: "package require Expect" fails due to incorrect pkgIndex.tcl file
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Package: expect Version: 5.43.0-6 Severity: important Tags: patch *** Please type your report below this line *** - From tclsh prompt or tkcon prompt, do package require Expect gives error: couldn't load file "/usr/lib/libexpect5.43.so.1": /usr/lib/libexpect5.43.so.1: cannot open shared object file: No such file or directory This is due entirely to an incorrect /usr/bin/expect5.43/pkgIndex.tcl file. Here is a patch: - --- /usr/lib/expect5.43/pkgIndex.tcl2006-07-12 14:20:29.0 - -0230 +++ /tmp/pkgIndex.tcl 2006-08-01 15:26:36.0 -0230 @@ -7,4 +7,4 @@ # script is sourced, the variable $dir must contain the # full path name of this file's directory. - -package ifneeded Expect 5.43.0 [list load [file join /usr lib libexpect5.43.so.1]] +package ifneeded Expect 5.43.0 [list load [file join /usr lib libexpect.so.5.43.0]] - -- System Information: Debian Release: testing/unstable APT prefers dapper APT policy: (500, 'dapper'), (500, 'breezy-updates'), (500, 'breezy-security'), (500, 'breezy'), (500, 'unstable'), (500, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.12 Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) Versions of packages expect depends on: ii libc6 2.3.6-15 GNU C Library: Shared libraries ii tcl8.48.4.12-1.1 Tcl (the Tool Command Language) v8 expect recommends no packages. - -- no debconf information -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEz5eKpVY5F7dRCb0RAurvAJ9j8FK2Q7IzSy5i+RsUar+A8uj/sQCg4+Ub F77a4a++T34Csxr6sSO976U= =jwnn -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]