platform/upstream/glib.git
14 years agodatetime: Rename internal method
Emmanuele Bassi [Thu, 26 Aug 2010 12:11:46 +0000 (13:11 +0100)]
datetime: Rename internal method

Use add_ymd(), to reflect the order of the arguments.

14 years agobuild: Fix warnings caused by missing includes
Emmanuele Bassi [Mon, 6 Sep 2010 10:43:04 +0000 (11:43 +0100)]
build: Fix warnings caused by missing includes

14 years agoUpdated Arabic translation
Khaled Hosny [Sun, 5 Sep 2010 14:23:00 +0000 (16:23 +0200)]
Updated Arabic translation

14 years agoUpdated Traditional Chinese translation(Hong Kong and Taiwan)
Chao-Hsiung Liao [Sun, 5 Sep 2010 11:24:01 +0000 (19:24 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)

14 years agoMore header inclusion cleanup
Matthias Clasen [Sun, 5 Sep 2010 04:23:03 +0000 (00:23 -0400)]
More header inclusion cleanup

14 years agobuild: Quench the compiler's thirst for warnings
Emmanuele Bassi [Sat, 4 Sep 2010 17:24:50 +0000 (18:24 +0100)]
build: Quench the compiler's thirst for warnings

14 years agogmain: Define _GNU_SOURCE before including glibconfig.h
Emmanuele Bassi [Sat, 4 Sep 2010 17:15:15 +0000 (18:15 +0100)]
gmain: Define _GNU_SOURCE before including glibconfig.h

As it pulls in unistd.h from something else.

14 years agoBuild fixes for the fall-out of the inclusion changes
Emmanuele Bassi [Sat, 4 Sep 2010 17:04:34 +0000 (18:04 +0100)]
Build fixes for the fall-out of the inclusion changes

14 years agogtimer: Fix a compilation warning
Emmanuele Bassi [Sat, 4 Sep 2010 17:03:33 +0000 (18:03 +0100)]
gtimer: Fix a compilation warning

14 years agoHack to include glib/gdatasetprivate.h directly
Emmanuele Bassi [Sat, 4 Sep 2010 16:22:39 +0000 (17:22 +0100)]
Hack to include glib/gdatasetprivate.h directly

The gdatasetprivate.h header includes gatomic.h directly. It all works
well in GLib, but inside GObject it will trigger the single inclusion
guard.

Since this is a private header, and it's kind of a special case, one way
to fix it is to declare GLIB_COMPILATION around it and fool the single
inclusion guard in gatomic.h into thinking we're compiling GLib and not
GObject.

14 years agoAdd missing gstrfuncs.h include
Emmanuele Bassi [Sat, 4 Sep 2010 16:22:18 +0000 (17:22 +0100)]
Add missing gstrfuncs.h include

For g_strdup() and friends.

14 years agoMore include cleanups
Matthias Clasen [Sat, 4 Sep 2010 03:03:14 +0000 (23:03 -0400)]
More include cleanups

14 years agoDon't include glib.h in other headers
Matthias Clasen [Sat, 4 Sep 2010 01:24:40 +0000 (21:24 -0400)]
Don't include glib.h in other headers

14 years agoRemove excessive header includes
Matthias Clasen [Sat, 4 Sep 2010 01:20:07 +0000 (21:20 -0400)]
Remove excessive header includes

14 years agoRemove excessive header includes
Matthias Clasen [Sat, 4 Sep 2010 01:15:45 +0000 (21:15 -0400)]
Remove excessive header includes

14 years agoDon't include glib.h in other headers
Matthias Clasen [Sat, 4 Sep 2010 01:12:03 +0000 (21:12 -0400)]
Don't include glib.h in other headers

14 years agoRemove excessive header inclusions
Matthias Clasen [Sat, 4 Sep 2010 00:57:05 +0000 (20:57 -0400)]
Remove excessive header inclusions

14 years agoRemove excessive header inclusions
Matthias Clasen [Sat, 4 Sep 2010 00:55:17 +0000 (20:55 -0400)]
Remove excessive header inclusions

14 years agoRemove excessive header inclusions
Matthias Clasen [Sat, 4 Sep 2010 00:53:37 +0000 (20:53 -0400)]
Remove excessive header inclusions

14 years agoRemove excessive header inclusions
Matthias Clasen [Sat, 4 Sep 2010 00:51:08 +0000 (20:51 -0400)]
Remove excessive header inclusions

14 years agoRemove some unneeded headers
Matthias Clasen [Sat, 4 Sep 2010 00:46:40 +0000 (20:46 -0400)]
Remove some unneeded headers

14 years agoRemove eexcessive header inclusions
Matthias Clasen [Sat, 4 Sep 2010 00:44:59 +0000 (20:44 -0400)]
Remove eexcessive header inclusions

14 years agoRemove redundant header inclusions
Matthias Clasen [Sat, 4 Sep 2010 00:41:52 +0000 (20:41 -0400)]
Remove redundant header inclusions

14 years agoRemove redundant header inclusions
Matthias Clasen [Sat, 4 Sep 2010 00:38:30 +0000 (20:38 -0400)]
Remove redundant header inclusions

14 years agoRemove redundant header inclusions
Matthias Clasen [Sat, 4 Sep 2010 00:34:15 +0000 (20:34 -0400)]
Remove redundant header inclusions

14 years agoRemove redundant header inclusions
Matthias Clasen [Sat, 4 Sep 2010 00:30:54 +0000 (20:30 -0400)]
Remove redundant header inclusions

14 years agoRemove redundant header inclusions
Matthias Clasen [Sat, 4 Sep 2010 00:27:45 +0000 (20:27 -0400)]
Remove redundant header inclusions

and some whitespace cleanup.

14 years agoRemove redundant header inclusions
Matthias Clasen [Sat, 4 Sep 2010 00:15:16 +0000 (20:15 -0400)]
Remove redundant header inclusions

14 years agoRemove redundant header inclusions
Matthias Clasen [Sat, 4 Sep 2010 00:12:09 +0000 (20:12 -0400)]
Remove redundant header inclusions

14 years agoRemove redundant header inclusions
Matthias Clasen [Sat, 4 Sep 2010 00:05:27 +0000 (20:05 -0400)]
Remove redundant header inclusions

14 years agoRemove redundant header inclusions
Matthias Clasen [Sat, 4 Sep 2010 00:01:55 +0000 (20:01 -0400)]
Remove redundant header inclusions

14 years agoRemove redundant header inclusions
Matthias Clasen [Fri, 3 Sep 2010 23:49:34 +0000 (19:49 -0400)]
Remove redundant header inclusions

and clean up some whitespace

14 years agoRemove redundant header inclusions
Matthias Clasen [Fri, 3 Sep 2010 23:41:49 +0000 (19:41 -0400)]
Remove redundant header inclusions

and clean up some whitespace

14 years agoWhitespace cleanup
Matthias Clasen [Fri, 3 Sep 2010 23:38:56 +0000 (19:38 -0400)]
Whitespace cleanup

14 years agoRemove redundant header inclusions
Matthias Clasen [Fri, 3 Sep 2010 23:37:54 +0000 (19:37 -0400)]
Remove redundant header inclusions

14 years agoWhitespace cleanup
Matthias Clasen [Fri, 3 Sep 2010 23:33:11 +0000 (19:33 -0400)]
Whitespace cleanup

14 years agoRemove redundant header inclusions
Matthias Clasen [Fri, 3 Sep 2010 23:32:02 +0000 (19:32 -0400)]
Remove redundant header inclusions

14 years agoSort extensions properly
Matthias Clasen [Fri, 3 Sep 2010 23:03:34 +0000 (19:03 -0400)]
Sort extensions properly

Just taking the difference of the priorities has overflow issues,
as pointed out in bug 623069.

14 years agoAdd a note about size limits of private structures
Matthias Clasen [Fri, 3 Sep 2010 22:11:08 +0000 (18:11 -0400)]
Add a note about size limits of private structures

Also add some assertions to check these limits, instead of
failing silently.  Bug 604479.

14 years agoPlug a mem leak in the gdbus-proxy test
Christian Persch [Fri, 3 Sep 2010 20:05:28 +0000 (16:05 -0400)]
Plug a mem leak in the gdbus-proxy test

==23341== 65 bytes in 3 blocks are definitely lost in loss record 927 of 1,020
==23341==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==23341==    by 0x4057094: g_malloc (gmem.c:134)
==23341==    by 0x40573DB: g_malloc_n (gmem.c:281)
==23341==    by 0x40717FC: g_strdup (gstrfuncs.c:101)
==23341==    by 0x4147F56: value_lcopy_string (gvaluetypes.c:313)
==23341==    by 0x4123F0B: g_object_get_valist (gobject.c:1643)
==23341==    by 0x41240FF: g_object_get (gobject.c:1731)
==23341==    by 0x804C39E: test_basic (gdbus-proxy.c:522)

Bug #628331.

14 years agoPlug a mem leak in the gdbus-proxy test
Christian Persch [Fri, 3 Sep 2010 20:04:29 +0000 (16:04 -0400)]
Plug a mem leak in the gdbus-proxy test

==23341== 85 (24 direct, 61 indirect) bytes in 1 blocks are definitely lost in loss record 900 of 971
==23341==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==23341==    by 0x4057094: g_malloc (gmem.c:134)
==23341==    by 0x406F2D6: g_slice_alloc (gslice.c:836)
==23341==    by 0x406F31B: g_slice_alloc0 (gslice.c:848)
==23341==    by 0x403A751: g_error_new_valist (gerror.c:54)
==23341==    by 0x403AAD4: g_set_error (gerror.c:240)
==23341==    by 0x420B807: decode_method_reply (gdbusconnection.c:4774)
==23341==    by 0x420C2BA: g_dbus_connection_call_sync (gdbusconnection.c:5188)
==23341==    by 0x421B7C9: g_dbus_proxy_call_sync (gdbusproxy.c:2477)
==23341==    by 0x804BD89: test_bogus_method_return (gdbus-proxy.c:430)

Bug #628331.

14 years agoPlug some mem leaks in gdbus-peer test
Christian Persch [Fri, 3 Sep 2010 20:03:48 +0000 (16:03 -0400)]
Plug some mem leaks in gdbus-peer test

==29535== 56 (24 direct, 32 indirect) bytes in 1 blocks are definitely lost in loss record 1,112 of 1,264
==29535==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==29535==    by 0x4057094: g_malloc (gmem.c:134)
==29535==    by 0x406F2D6: g_slice_alloc (gslice.c:836)
==29535==    by 0x406F364: g_slice_copy (gslice.c:858)
==29535==    by 0x403A9B2: g_error_copy (gerror.c:160)
==29535==    by 0x42066D3: initable_init (gdbusconnection.c:2314)
==29535==    by 0x41A73E5: g_initable_init (ginitable.c:105)
==29535==    by 0x41A7587: g_initable_new_valist (ginitable.c:218)
==29535==    by 0x41A742A: g_initable_new (ginitable.c:138)
==29535==    by 0x4206DCC: g_dbus_connection_new_for_address_sync (gdbusconnection.c:2585)
==29535==    by 0x804D63A: test_nonce_tcp (gdbus-peer.c:1229)

==29535== 107 (24 direct, 83 indirect) bytes in 1 blocks are definitely lost in loss record 1,188 of 1,264
==29535==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==29535==    by 0x4057094: g_malloc (gmem.c:134)
==29535==    by 0x406F2D6: g_slice_alloc (gslice.c:836)
==29535==    by 0x406F364: g_slice_copy (gslice.c:858)
==29535==    by 0x403A9B2: g_error_copy (gerror.c:160)
==29535==    by 0x42066D3: initable_init (gdbusconnection.c:2314)
==29535==    by 0x41A73E5: g_initable_init (ginitable.c:105)
==29535==    by 0x41A7587: g_initable_new_valist (ginitable.c:218)
==29535==    by 0x41A742A: g_initable_new (ginitable.c:138)
==29535==    by 0x4206DCC: g_dbus_connection_new_for_address_sync (gdbusconnection.c:2585)
==29535==    by 0x804D8E8: test_nonce_tcp (gdbus-peer.c:1259)

==29535== 112 (24 direct, 88 indirect) bytes in 1 blocks are definitely lost in loss record 1,193 of 1,264
==29535==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==29535==    by 0x4057094: g_malloc (gmem.c:134)
==29535==    by 0x406F2D6: g_slice_alloc (gslice.c:836)
==29535==    by 0x406F364: g_slice_copy (gslice.c:858)
==29535==    by 0x403A9B2: g_error_copy (gerror.c:160)
==29535==    by 0x42066D3: initable_init (gdbusconnection.c:2314)
==29535==    by 0x41A73E5: g_initable_init (ginitable.c:105)
==29535==    by 0x41A7587: g_initable_new_valist (ginitable.c:218)
==29535==    by 0x41A742A: g_initable_new (ginitable.c:138)
==29535==    by 0x4206DCC: g_dbus_connection_new_for_address_sync (gdbusconnection.c:2585)
==29535==    by 0x804D79A: test_nonce_tcp (gdbus-peer.c:1248)

==29535== 73 (24 direct, 49 indirect) bytes in 1 blocks are definitely lost in loss record 1,152 of 1,264
==29535==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==29535==    by 0x4057094: g_malloc (gmem.c:134)
==29535==    by 0x406F2D6: g_slice_alloc (gslice.c:836)
==29535==    by 0x406F364: g_slice_copy (gslice.c:858)
==29535==    by 0x403A9B2: g_error_copy (gerror.c:160)
==29535==    by 0x42066D3: initable_init (gdbusconnection.c:2314)
==29535==    by 0x41A73E5: g_initable_init (ginitable.c:105)
==29535==    by 0x41A7587: g_initable_new_valist (ginitable.c:218)
==29535==    by 0x41A742A: g_initable_new (ginitable.c:138)
==29535==    by 0x4206DCC: g_dbus_connection_new_for_address_sync (gdbusconnection.c:2585)
==29535==    by 0x804C6CE: test_peer (gdbus-peer.c:803)

Bug #628331.

14 years agoPlug a mem leak in the gdbus-peer test
Christian Persch [Fri, 3 Sep 2010 20:02:11 +0000 (16:02 -0400)]
Plug a mem leak in the gdbus-peer test

==6793== 32 (24 direct, 8 indirect) bytes in 1 blocks are definitely lost in loss record 779 of 1,423
==6793==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==6793==    by 0x4057094: g_malloc (gmem.c:134)
==6793==    by 0x406F2D6: g_slice_alloc (gslice.c:836)
==6793==    by 0x406F31B: g_slice_alloc0 (gslice.c:848)
==6793==    by 0x413D5BB: g_type_create_instance (gtype.c:1867)
==6793==    by 0x412372A: g_object_constructor (gobject.c:1482)
==6793==    by 0x4122E1D: g_object_newv (gobject.c:1266)
==6793==    by 0x4122B93: g_object_new (gobject.c:1178)
==6793==    by 0x41DB4F9: g_unix_fd_list_new (gunixfdlist.c:159)
==6793==    by 0x804AADD: test_interface_method_call (gdbus-peer.c:172)

Bug #628331.

14 years agoPlug a mem leak in network-address test
Christian Persch [Fri, 3 Sep 2010 20:01:10 +0000 (16:01 -0400)]
Plug a mem leak in network-address test

==4616== 46 (32 direct, 14 indirect) bytes in 1 blocks are definitely lost in loss record 193 of 305
==4616==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==4616==    by 0x4057094: g_malloc (gmem.c:134)
==4616==    by 0x406F2D6: g_slice_alloc (gslice.c:836)
==4616==    by 0x406F31B: g_slice_alloc0 (gslice.c:848)
==4616==    by 0x413D5BB: g_type_create_instance (gtype.c:1867)
==4616==    by 0x412372A: g_object_constructor (gobject.c:1482)
==4616==    by 0x4123147: g_object_newv (gobject.c:1347)
==4616==    by 0x41236BB: g_object_new_valist (gobject.c:1463)
==4616==    by 0x4122BB4: g_object_new (gobject.c:1181)
==4616==    by 0x41B2D0F: g_network_address_new (gnetworkaddress.c:262)
==4616==    by 0x8048A70: test_basic (network-address.c:10)

Bug #628331.

14 years agoPlug a mem leak in contexts test
Christian Persch [Fri, 3 Sep 2010 20:00:15 +0000 (16:00 -0400)]
Plug a mem leak in contexts test

==14059== 96 bytes in 2 blocks are definitely lost in loss record 520 of 543
==14059==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==14059==    by 0x4057094: g_malloc (gmem.c:134)
==14059==    by 0x406F2D6: g_slice_alloc (gslice.c:836)
==14059==    by 0x406F31B: g_slice_alloc0 (gslice.c:848)
==14059==    by 0x41385BB: g_type_create_instance (gtype.c:1867)
==14059==    by 0x411E72A: g_object_constructor (gobject.c:1482)
==14059==    by 0x411DE1D: g_object_newv (gobject.c:1266)
==14059==    by 0x411DB93: g_object_new (gobject.c:1178)
==14059==    by 0x42296AF: _g_local_file_input_stream_new (glocalfileinputstream.c:152)
==14059==    by 0x422281F: g_local_file_read (glocalfile.c:1322)
==14059==    by 0x418A8A9: open_read_async_thread (gfile.c:5050)
==14059==    by 0x41B71BB: run_in_thread (gsimpleasyncresult.c:853)
==14059==    by 0x41A5FBC: io_job_thread (gioscheduler.c:181)
==14059==    by 0x407DCDE: g_thread_pool_thread_proxy (gthreadpool.c:314)
==14059==    by 0x407C6B0: g_thread_create_proxy (gthread.c:1897)
==14059==    by 0x57D918: start_thread (pthread_create.c:301)
==14059==    by 0x4C6CBD: clone (clone.S:133)

Bug #628331.

14 years agoPlug mem leaks in contexts test
Christian Persch [Fri, 3 Sep 2010 19:58:51 +0000 (15:58 -0400)]
Plug mem leaks in contexts test

==2464== 80 (16 direct, 64 indirect) bytes in 1 blocks are definitely lost in loss record 515 of 547
==2464==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==2464==    by 0x4057094: g_malloc (gmem.c:134)
==2464==    by 0x406F2D6: g_slice_alloc (gslice.c:836)
==2464==    by 0x406F31B: g_slice_alloc0 (gslice.c:848)
==2464==    by 0x41385BB: g_type_create_instance (gtype.c:1867)
==2464==    by 0x411E72A: g_object_constructor (gobject.c:1482)
==2464==    by 0x411DE1D: g_object_newv (gobject.c:1266)
==2464==    by 0x411DB93: g_object_new (gobject.c:1178)
==2464==    by 0x4220D74: _g_local_file_new (glocalfile.c:310)
==2464==    by 0x422C897: g_local_vfs_get_file_for_path (glocalvfs.c:84)
==2464==    by 0x41CA91C: g_vfs_get_file_for_path (gvfs.c:94)
==2464==    by 0x418C1B6: g_file_new_for_path (gfile.c:5898)
==2464==    by 0x8049509: test1_thread (contexts.c:110)

==2464== 80 (16 direct, 64 indirect) bytes in 1 blocks are definitely lost in loss record 516 of 547
==2464==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==2464==    by 0x4057094: g_malloc (gmem.c:134)
==2464==    by 0x406F2D6: g_slice_alloc (gslice.c:836)
==2464==    by 0x406F31B: g_slice_alloc0 (gslice.c:848)
==2464==    by 0x41385BB: g_type_create_instance (gtype.c:1867)
==2464==    by 0x411E72A: g_object_constructor (gobject.c:1482)
==2464==    by 0x411DE1D: g_object_newv (gobject.c:1266)
==2464==    by 0x411DB93: g_object_new (gobject.c:1178)
==2464==    by 0x4220D74: _g_local_file_new (glocalfile.c:310)
==2464==    by 0x422C897: g_local_vfs_get_file_for_path (glocalvfs.c:84)
==2464==    by 0x41CA91C: g_vfs_get_file_for_path (gvfs.c:94)
==2464==    by 0x418C1B6: g_file_new_for_path (gfile.c:5898)
==2464==    by 0x804964D: test_context_independence (contexts.c:144)

Bug #628331.

14 years agoPlug a mem leak in buffered-input-stream test
Christian Persch [Fri, 3 Sep 2010 19:57:26 +0000 (15:57 -0400)]
Plug a mem leak in buffered-input-stream test

==2429== 49 (24 direct, 25 indirect) bytes in 1 blocks are definitely lost in loss record 276 of 355
==2429==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==2429==    by 0x4057094: g_malloc (gmem.c:134)
==2429==    by 0x406F2D6: g_slice_alloc (gslice.c:836)
==2429==    by 0x406F31B: g_slice_alloc0 (gslice.c:848)
==2429==    by 0x403A8A6: g_error_new_literal (gerror.c:117)
==2429==    by 0x403AC31: g_set_error_literal (gerror.c:314)
==2429==    by 0x4175525: g_buffered_input_stream_read_byte (gbufferedinputstream.c:880)
==2429==    by 0x804A21A: test_read_byte (buffered-input-stream.c:153)

Bug #628331.

14 years agoPlug a mem leak in g-icon test
Christian Persch [Fri, 3 Sep 2010 19:56:23 +0000 (15:56 -0400)]
Plug a mem leak in g-icon test

==2428== 256 bytes in 1 blocks are definitely lost in loss record 591 of 604
==2428==    at 0x4005CD2: realloc (vg_replace_malloc.c:476)
==2428==    by 0x40571A5: g_realloc (gmem.c:181)
==2428==    by 0x4075287: g_string_maybe_expand (gstring.c:395)
==2428==    by 0x40760D8: g_string_insert_c (gstring.c:1049)
==2428==    by 0x4074D41: g_string_append_c_inline (gstring.h:153)
==2428==    by 0x4075B3C: g_string_append_uri_escaped (gstring.c:822)
==2428==    by 0x41A46AC: g_icon_to_string_tokenized (gicon.c:164)
==2428==    by 0x41A498F: g_icon_to_string (gicon.c:252)
==2428==    by 0x8049E1A: test_g_icon_serialize (g-icon.c:222)

Bug #628331.

14 years agoPlug a huge mem leak in data-output-stream test
Christian Persch [Fri, 3 Sep 2010 19:55:10 +0000 (15:55 -0400)]
Plug a huge mem leak in data-output-stream test

==12763== 16,777,215 bytes in 1 blocks are possibly lost in loss record 357 of 357
==12763==    at 0x4004F1B: calloc (vg_replace_malloc.c:418)
==12763==    by 0x405711D: g_malloc0 (gmem.c:157)
==12763==    by 0x8048ED6: test_basic (data-output-stream.c:40)

Bug #628331.

14 years agoPlug a mem leak in data-output-stream test
Christian Persch [Fri, 3 Sep 2010 19:53:56 +0000 (15:53 -0400)]
Plug a mem leak in data-output-stream test

==2426== 45,034 bytes in 4,094 blocks are definitely lost in loss record 358 of 361
==2426==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==2426==    by 0x4057094: g_malloc (gmem.c:134)
==2426==    by 0x40573DB: g_malloc_n (gmem.c:281)
==2426==    by 0x4071ABD: g_strconcat (gstrfuncs.c:315)
==2426==    by 0x804916A: test_read_lines (data-output-stream.c:83)

Bug #628331.

14 years agoPlug a mem leak in data-input-stream test
Christian Persch [Fri, 3 Sep 2010 19:53:05 +0000 (15:53 -0400)]
Plug a mem leak in data-input-stream test

==12351== 45,045 bytes in 4,095 blocks are definitely lost in loss record 377 of 380
==12351==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==12351==    by 0x4057094: g_malloc (gmem.c:134)
==12351==    by 0x40573DB: g_malloc_n (gmem.c:281)
==12351==    by 0x4071ABD: g_strconcat (gstrfuncs.c:315)
==12351==    by 0x8049811: test_read_lines (data-input-stream.c:99)

Bug #628331.

14 years agoPlug a mem leak in data-input-stream test
Christian Persch [Fri, 3 Sep 2010 19:47:38 +0000 (15:47 -0400)]
Plug a mem leak in data-input-stream test

==2415== 45,045 bytes in 4,095 blocks are definitely lost in loss record 393 of 399
==2415==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==2415==    by 0x4057094: g_malloc (gmem.c:134)
==2415==    by 0x417FC29: g_data_input_stream_read_line (gdatainputstream.c:797)
==2415==    by 0x8049874: test_read_lines (data-input-stream.c:111)

==12088== 360 bytes in 40 blocks are definitely lost in loss record 368 of 381
==12088==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==12088==    by 0x4057094: g_malloc (gmem.c:134)
==12088==    by 0x417FF4C: g_data_input_stream_read_until (gdatainputstream.c:914)
==12088==    by 0x8049B6F: test_read_until (data-input-stream.c:182)

Bug #628331.

14 years agoPlug a mem leak in data-input-stream test
Christian Persch [Fri, 3 Sep 2010 19:45:48 +0000 (15:45 -0400)]
Plug a mem leak in data-input-stream test

==2415== 165 (72 direct, 93 indirect) bytes in 3 blocks are definitely lost in loss record 373 of 399
==2415==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==2415==    by 0x4057094: g_malloc (gmem.c:134)
==2415==    by 0x406F2D6: g_slice_alloc (gslice.c:836)
==2415==    by 0x406F31B: g_slice_alloc0 (gslice.c:848)
==2415==    by 0x403A8A6: g_error_new_literal (gerror.c:117)
==2415==    by 0x403AC31: g_set_error_literal (gerror.c:314)
==2415==    by 0x417ED29: read_data (gdatainputstream.c:309)
==2415==    by 0x417EE9D: g_data_input_stream_read_byte (gdatainputstream.c:344)
==2415==    by 0x8049DEC: test_data_array (data-input-stream.c:263)

Bug #628331.

14 years agoPlug a mem leak in readwrite test
Christian Persch [Fri, 3 Sep 2010 19:44:28 +0000 (15:44 -0400)]
Plug a mem leak in readwrite test

==10395== 80 (24 direct, 56 indirect) bytes in 1 blocks are definitely lost in loss record 529 of 561
==10395==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==10395==    by 0x4057094: g_malloc (gmem.c:134)
==10395==    by 0x406F2D6: g_slice_alloc (gslice.c:836)
==10395==    by 0x406F31B: g_slice_alloc0 (gslice.c:848)
==10395==    by 0x403A751: g_error_new_valist (gerror.c:54)
==10395==    by 0x403AAD4: g_set_error (gerror.c:240)
==10395==    by 0x4230328: _g_local_file_output_stream_create (glocalfileoutputstream.c:628)
==10395==    by 0x4227A04: g_local_file_create_readwrite (glocalfile.c:1388)
==10395==    by 0x418974C: g_file_create_readwrite (gfile.c:1784)
==10395==    by 0x8049FCD: test_g_file_create_readwrite (readwrite.c:187)

Bug #628331.

14 years agoPlug some huge mem leaks in converter-stream test
Christian Persch [Fri, 3 Sep 2010 19:43:03 +0000 (15:43 -0400)]
Plug some huge mem leaks in converter-stream test

==8564== 24,000,000 bytes in 6 blocks are possibly lost in loss record 592 of 594
==8564==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==8564==    by 0x4057094: g_malloc (gmem.c:134)
==8564==    by 0x804AA37: test_corruption (converter-stream.c:589)
==8564==    by 0x804B05B: test_roundtrip (converter-stream.c:652)

==9459== 25,165,824 bytes in 6 blocks are possibly lost in loss record 593 of 594
==9459==    at 0x4005CD2: realloc (vg_replace_malloc.c:476)
==9459==    by 0x40571A5: g_realloc (gmem.c:181)
==9459==    by 0x41B08A3: array_resize (gmemoryoutputstream.c:501)
==9459==    by 0x41B0A5D: g_memory_output_stream_write (gmemoryoutputstream.c:578)
==9459==    by 0x41B57EF: g_output_stream_write (goutputstream.c:216)
==9459==    by 0x41B591B: g_output_stream_write_all (goutputstream.c:268)
==9459==    by 0x417D617: flush_buffer (gconverteroutputstream.c:359)
==9459==    by 0x417D958: g_converter_output_stream_write (gconverteroutputstream.c:502)
==9459==    by 0x41B5D7F: g_output_stream_real_splice (goutputstream.c:428)
==9459==    by 0x41B5C6C: g_output_stream_splice (goutputstream.c:380)
==9459==    by 0x804AB10: test_corruption (converter-stream.c:600)

==9785== 25,165,824 bytes in 6 blocks are possibly lost in loss record 592 of 592
==9785==    at 0x4005CD2: realloc (vg_replace_malloc.c:476)
==9785==    by 0x40571A5: g_realloc (gmem.c:181)
==9785==    by 0x41B08A3: array_resize (gmemoryoutputstream.c:501)
==9785==    by 0x41B0A5D: g_memory_output_stream_write (gmemoryoutputstream.c:578)
==9785==    by 0x41B5D7F: g_output_stream_real_splice (goutputstream.c:428)
==9785==    by 0x41B5C6C: g_output_stream_splice (goutputstream.c:380)
==9785==    by 0x804ADF1: test_corruption (converter-stream.c:622)
==9785==    by 0x804B06C: test_roundtrip (converter-stream.c:652)

Bug #628331.

14 years agoPlug a mem leak in convert-stream test
Christian Persch [Fri, 3 Sep 2010 19:40:55 +0000 (15:40 -0400)]
Plug a mem leak in convert-stream test

==7540== 487 (64 direct, 423 indirect) bytes in 2 blocks are definitely lost in loss record 597 of 615
==7540==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==7540==    by 0x4057094: g_malloc (gmem.c:134)
==7540==    by 0x406F2D6: g_slice_alloc (gslice.c:836)
==7540==    by 0x406F31B: g_slice_alloc0 (gslice.c:848)
==7540==    by 0x413D5BB: g_type_create_instance (gtype.c:1867)
==7540==    by 0x412372A: g_object_constructor (gobject.c:1482)
==7540==    by 0x4123147: g_object_newv (gobject.c:1347)
==7540==    by 0x41236BB: g_object_new_valist (gobject.c:1463)
==7540==    by 0x41A756E: g_initable_new_valist (ginitable.c:214)
==7540==    by 0x41A743E: g_initable_new (ginitable.c:138)
==7540==    by 0x417B67A: g_charset_converter_new (gcharsetconverter.c:215)
==7540==    by 0x804B043: test_charset (converter-stream.c:675)

Bug #628331.

14 years agoPlug a mem leak in converter-stream test
Christian Persch [Fri, 3 Sep 2010 19:39:58 +0000 (15:39 -0400)]
Plug a mem leak in converter-stream test

==2396== 168 (92 direct, 76 indirect) bytes in 1 blocks are definitely lost in loss record 598 of 625
==2396==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==2396==    by 0x4057094: g_malloc (gmem.c:134)
==2396==    by 0x406F2D6: g_slice_alloc (gslice.c:836)
==2396==    by 0x406F31B: g_slice_alloc0 (gslice.c:848)
==2396==    by 0x413D5BB: g_type_create_instance (gtype.c:1867)
==2396==    by 0x412372A: g_object_constructor (gobject.c:1482)
==2396==    by 0x4123147: g_object_newv (gobject.c:1347)
==2396==    by 0x41236BB: g_object_new_valist (gobject.c:1463)
==2396==    by 0x4122BB4: g_object_new (gobject.c:1181)
==2396==    by 0x417C54D: g_converter_input_stream_new (gconverterinputstream.c:204)
==2396==    by 0x804A53E: test_compressor (converter-stream.c:484)

Bug #628331.

14 years agoPlug a mem leak in converter-stream test
Christian Persch [Fri, 3 Sep 2010 19:39:07 +0000 (15:39 -0400)]
Plug a mem leak in converter-stream test

==2396== 66 (24 direct, 42 indirect) bytes in 1 blocks are definitely lost in loss record 565 of 625
==2396==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==2396==    by 0x4057094: g_malloc (gmem.c:134)
==2396==    by 0x406F2D6: g_slice_alloc (gslice.c:836)
==2396==    by 0x406F31B: g_slice_alloc0 (gslice.c:848)
==2396==    by 0x403A8A6: g_error_new_literal (gerror.c:117)
==2396==    by 0x403AC31: g_set_error_literal (gerror.c:314)
==2396==    by 0x417BA38: g_charset_converter_convert (gcharsetconverter.c:344)
==2396==    by 0x417BF67: g_converter_convert (gconverter.c:174)
==2396==    by 0x417C9EB: g_converter_input_stream_read (gconverterinputstream.c:403)
==2396==    by 0x41A7A17: g_input_stream_read (ginputstream.c:204)
==2396==    by 0x41A7B43: g_input_stream_read_all (ginputstream.c:256)
==2396==    by 0x804B0E4: test_charset (converter-stream.c:682)

Bug #628331.

14 years agoPlug a mem leak in converter-stream test
Christian Persch [Fri, 3 Sep 2010 19:37:56 +0000 (15:37 -0400)]
Plug a mem leak in converter-stream test

==2396== 39 (24 direct, 15 indirect) bytes in 1 blocks are definitely lost in loss record 398 of 625
==2396==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==2396==    by 0x4057094: g_malloc (gmem.c:134)
==2396==    by 0x406F2D6: g_slice_alloc (gslice.c:836)
==2396==    by 0x406F31B: g_slice_alloc0 (gslice.c:848)
==2396==    by 0x403A8A6: g_error_new_literal (gerror.c:117)
==2396==    by 0x403AC31: g_set_error_literal (gerror.c:314)
==2396==    by 0x80498F7: g_compressor_converter_convert (converter-stream.c:244)
==2396==    by 0x417BF67: g_converter_convert (gconverter.c:174)
==2396==    by 0x417CBDE: g_converter_input_stream_read (gconverterinputstream.c:460)
==2396==    by 0x41A7A17: g_input_stream_read (ginputstream.c:204)
==2396==    by 0x804A832: test_compressor (converter-stream.c:545)

Bug #628331.

14 years agoPlug a mem leak in g-file-info test
Christian Persch [Fri, 3 Sep 2010 19:37:08 +0000 (15:37 -0400)]
Plug a mem leak in g-file-info test

==2395== 64 bytes in 1 blocks are definitely lost in loss record 381 of 407
==2395==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==2395==    by 0x4005C66: realloc (vg_replace_malloc.c:476)
==2395==    by 0x40571A5: g_realloc (gmem.c:181)
==2395==    by 0x401D670: g_ptr_array_maybe_expand (garray.c:968)
==2395==    by 0x401DD0B: g_ptr_array_add (garray.c:1225)
==2395==    by 0x4199AA9: g_file_info_list_attributes (gfileinfo.c:646)
==2395==    by 0x80491CE: test_g_file_info (g-file-info.c:76)

==2395== 132 (64 direct, 68 indirect) bytes in 1 blocks are definitely lost in loss record 396 of 407
==2395==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==2395==    by 0x4005C66: realloc (vg_replace_malloc.c:476)
==2395==    by 0x40571A5: g_realloc (gmem.c:181)
==2395==    by 0x401D670: g_ptr_array_maybe_expand (garray.c:968)
==2395==    by 0x401DD0B: g_ptr_array_add (garray.c:1225)
==2395==    by 0x4199A82: g_file_info_list_attributes (gfileinfo.c:642)
==2395==    by 0x80492B7: test_g_file_info (g-file-info.c:86)

Bug #628331.

14 years agoPlug a mem leak in the readwrite test
Christian Persch [Fri, 3 Sep 2010 19:35:44 +0000 (15:35 -0400)]
Plug a mem leak in the readwrite test

And use g_assert_[no_]error().

==2392== 49 (24 direct, 25 indirect) bytes in 1 blocks are definitely lost in loss record 451 of 573
==2392==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==2392==    by 0x4057094: g_malloc (gmem.c:134)
==2392==    by 0x406F2D6: g_slice_alloc (gslice.c:836)
==2392==    by 0x406F31B: g_slice_alloc0 (gslice.c:848)
==2392==    by 0x403A8A6: g_error_new_literal (gerror.c:117)
==2392==    by 0x403AC31: g_set_error_literal (gerror.c:314)
==2392==    by 0x41B7619: g_output_stream_set_pending (goutputstream.c:1198)
==2392==    by 0x41B5799: g_output_stream_write (goutputstream.c:210)
==2392==    by 0x41B590B: g_output_stream_write_all (goutputstream.c:268)
==2392==    by 0x8049B54: verify_iostream (readwrite.c:110)

Bug #628331.

14 years agoPlug a mem leak in the readwrite test
Christian Persch [Fri, 3 Sep 2010 19:34:12 +0000 (15:34 -0400)]
Plug a mem leak in the readwrite test

==2392== 38 (16 direct, 22 indirect) bytes in 1 blocks are definitely lost in loss record 369 of 573
==2392==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==2392==    by 0x4057094: g_malloc (gmem.c:134)
==2392==    by 0x406F2D6: g_slice_alloc (gslice.c:836)
==2392==    by 0x406F31B: g_slice_alloc0 (gslice.c:848)
==2392==    by 0x413D5BB: g_type_create_instance (gtype.c:1867)
==2392==    by 0x412372A: g_object_constructor (gobject.c:1482)
==2392==    by 0x4122E1D: g_object_newv (gobject.c:1266)
==2392==    by 0x4122B93: g_object_new (gobject.c:1178)
==2392==    by 0x4225D74: _g_local_file_new (glocalfile.c:310)
==2392==    by 0x4231897: g_local_vfs_get_file_for_path (glocalvfs.c:84)
==2392==    by 0x41CF91C: g_vfs_get_file_for_path (gvfs.c:94)
==2392==    by 0x41911B6: g_file_new_for_path (gfile.c:5898)
==2392==    by 0x804A2B9: test_g_file_replace_readwrite (readwrite.c:235)

Bug #628331.

14 years agoPlug a mem leak in the readwrite test
Christian Persch [Fri, 3 Sep 2010 19:33:28 +0000 (15:33 -0400)]
Plug a mem leak in the readwrite test

==2392== 38 (16 direct, 22 indirect) bytes in 1 blocks are definitely lost in loss record 368 of 573
==2392==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==2392==    by 0x4057094: g_malloc (gmem.c:134)
==2392==    by 0x406F2D6: g_slice_alloc (gslice.c:836)
==2392==    by 0x406F31B: g_slice_alloc0 (gslice.c:848)
==2392==    by 0x413D5BB: g_type_create_instance (gtype.c:1867)
==2392==    by 0x412372A: g_object_constructor (gobject.c:1482)
==2392==    by 0x4122E1D: g_object_newv (gobject.c:1266)
==2392==    by 0x4122B93: g_object_new (gobject.c:1178)
==2392==    by 0x4225D74: _g_local_file_new (glocalfile.c:310)
==2392==    by 0x4231897: g_local_vfs_get_file_for_path (glocalvfs.c:84)
==2392==    by 0x41CF91C: g_vfs_get_file_for_path (gvfs.c:94)
==2392==    by 0x41911B6: g_file_new_for_path (gfile.c:5898)
==2392==    by 0x8049F23: test_g_file_create_readwrite (readwrite.c:183)

Bug #628331.

14 years agoPlug a mem leak in the readwrite test
Christian Persch [Fri, 3 Sep 2010 19:32:32 +0000 (15:32 -0400)]
Plug a mem leak in the readwrite test

==2392== 38 (16 direct, 22 indirect) bytes in 1 blocks are definitely lost in loss record 367 of 573
==2392==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==2392==    by 0x4057094: g_malloc (gmem.c:134)
==2392==    by 0x406F2D6: g_slice_alloc (gslice.c:836)
==2392==    by 0x406F31B: g_slice_alloc0 (gslice.c:848)
==2392==    by 0x413D5BB: g_type_create_instance (gtype.c:1867)
==2392==    by 0x412372A: g_object_constructor (gobject.c:1482)
==2392==    by 0x4122E1D: g_object_newv (gobject.c:1266)
==2392==    by 0x4122B93: g_object_new (gobject.c:1178)
==2392==    by 0x4225D74: _g_local_file_new (glocalfile.c:310)
==2392==    by 0x4231897: g_local_vfs_get_file_for_path (glocalvfs.c:84)
==2392==    by 0x41CF91C: g_vfs_get_file_for_path (gvfs.c:94)
==2392==    by 0x41911B6: g_file_new_for_path (gfile.c:5898)
==2392==    by 0x8049E30: test_g_file_open_readwrite (readwrite.c:153)

Bug #628331.

14 years agoPlug a mem leak in the memory-input-stream test
Christian Persch [Fri, 3 Sep 2010 19:31:37 +0000 (15:31 -0400)]
Plug a mem leak in the memory-input-stream test

==2389== 84 (44 direct, 40 indirect) bytes in 1 blocks are definitely lost in loss record 299 of 315
==2389==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==2389==    by 0x4057094: g_malloc (gmem.c:134)
==2389==    by 0x406F2D6: g_slice_alloc (gslice.c:836)
==2389==    by 0x406F31B: g_slice_alloc0 (gslice.c:848)
==2389==    by 0x413D5BB: g_type_create_instance (gtype.c:1867)
==2389==    by 0x412372A: g_object_constructor (gobject.c:1482)
==2389==    by 0x4122E1D: g_object_newv (gobject.c:1266)
==2389==    by 0x4122B93: g_object_new (gobject.c:1178)
==2389==    by 0x41AF54C: g_memory_input_stream_new (gmemoryinputstream.c:199)
==2389==    by 0x8048BD1: test_read_chunks (memory-input-stream.c:40)

Bug #628331.

14 years agoPlug a mem leak in the memory-input-stream test
Christian Persch [Fri, 3 Sep 2010 19:30:47 +0000 (15:30 -0400)]
Plug a mem leak in the memory-input-stream test

==2389== 59 (24 direct, 35 indirect) bytes in 1 blocks are definitely lost in loss record 290 of 315
==2389==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==2389==    by 0x4057094: g_malloc (gmem.c:134)
==2389==    by 0x406F2D6: g_slice_alloc (gslice.c:836)
==2389==    by 0x406F31B: g_slice_alloc0 (gslice.c:848)
==2389==    by 0x403A8A6: g_error_new_literal (gerror.c:117)
==2389==    by 0x403AC31: g_set_error_literal (gerror.c:314)
==2389==    by 0x41AFD15: g_memory_input_stream_truncate (gmemoryinputstream.c:517)
==2389==    by 0x41BAC0F: g_seekable_truncate (gseekable.c:174)
==2389==    by 0x8049595: test_truncate (memory-input-stream.c:123)

Bug #628331.

14 years agoPlug a mem leak in gsettings test
Christian Persch [Fri, 3 Sep 2010 19:29:51 +0000 (15:29 -0400)]
Plug a mem leak in gsettings test

==2530== 13 bytes in 1 blocks are definitely lost in loss record 373 of 681
==2530==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==2530==    by 0x4057094: g_malloc (gmem.c:134)
==2530==    by 0x40573DB: g_malloc_n (gmem.c:281)
==2530==    by 0x40717FC: g_strdup (gstrfuncs.c:101)
==2530==    by 0x4147F56: value_lcopy_string (gvaluetypes.c:313)
==2530==    by 0x4123F0B: g_object_get_valist (gobject.c:1643)
==2530==    by 0x41240FF: g_object_get (gobject.c:1731)
==2530==    by 0x804A4BA: test_basic (gsettings.c:28)

Bug #628331.

14 years agoPlug a mem leak
Christian Persch [Tue, 31 Aug 2010 17:42:32 +0000 (19:42 +0200)]
Plug a mem leak

Don't leak the ptr arrays in the map_sender_unique_name_to_signal_data_array
hash table.

==23440== 84 (20 direct, 64 indirect) bytes in 1 blocks are definitely lost in loss record 920 of 993
==23440==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==23440==    by 0x4057094: g_malloc (gmem.c:134)
==23440==    by 0x406F2D6: g_slice_alloc (gslice.c:836)
==23440==    by 0x401D2D0: g_ptr_array_sized_new (garray.c:799)
==23440==    by 0x401D2AC: g_ptr_array_new (garray.c:783)
==23440==    by 0x420834A: g_dbus_connection_signal_subscribe (gdbusconnection.c:3084)

Bug #628436.

14 years agoPlug a mem leak
Christian Persch [Mon, 30 Aug 2010 17:31:09 +0000 (19:31 +0200)]
Plug a mem leak

==31063== 98 (24 direct, 74 indirect) bytes in 1 blocks are definitely lost in loss record 946 of 1,136
==31063==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==31063==    by 0x4057094: g_malloc (gmem.c:134)
==31063==    by 0x406F2D6: g_slice_alloc (gslice.c:836)
==31063==    by 0x4092383: g_variant_get_child_value (gvariant-core.c:847)
==31063==    by 0x408BE9E: g_variant_get_variant (gvariant.c:709)
==31063==    by 0x40903F5: g_variant_valist_get_nnp (gvariant.c:3767)
==31063==    by 0x40907A9: g_variant_valist_get_leaf (gvariant.c:3884)
==31063==    by 0x4090D10: g_variant_valist_get (gvariant.c:4065)
==31063==    by 0x4090E59: g_variant_valist_get (gvariant.c:4100)
==31063==    by 0x40911B6: g_variant_get_va (gvariant.c:4296)
==31063==    by 0x40910BC: g_variant_get (gvariant.c:4248)
==31063==    by 0x4208DAF: invoke_set_property_in_idle_cb (gdbusconnection.c:3676)

Bug #628346.

14 years agoPlug a mem leak
Christian Persch [Mon, 30 Aug 2010 17:00:05 +0000 (19:00 +0200)]
Plug a mem leak

... and use g_error_matches().

==29535== 1,360 (408 direct, 952 indirect) bytes in 17 blocks are definitely lost in loss record 1,252 of 1,264
==29535==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==29535==    by 0x4057094: g_malloc (gmem.c:134)
==29535==    by 0x406F2D6: g_slice_alloc (gslice.c:836)
==29535==    by 0x406F31B: g_slice_alloc0 (gslice.c:848)
==29535==    by 0x403A751: g_error_new_valist (gerror.c:54)
==29535==    by 0x403AAD4: g_set_error (gerror.c:240)
==29535==    by 0x41C06C8: g_socket_send_message (gsocket.c:2967)
==29535==    by 0x421CB64: write_message_continue_writing (gdbusprivate.c:958)
==29535==    by 0x421CE2A: write_message_async (gdbusprivate.c:1049)
==29535==    by 0x421D4DD: maybe_write_next_message (gdbusprivate.c:1291)
==29535==    by 0x421D26B: message_written (gdbusprivate.c:1187)
==29535==    by 0x421D322: write_message_cb (gdbusprivate.c:1216)

Bug #628345.

14 years agoMake ordering for overridden interface properties consistent
Matthias Clasen [Fri, 3 Sep 2010 18:52:16 +0000 (14:52 -0400)]
Make ordering for overridden interface properties consistent

g_object_class_list_properties tries to sort the returned list of
paramspecs by 'type depth' and param_id. But all the overridden
interface properties have a param_id of 0, so they come out in
a random order.

Bug 628253.

14 years agoRecuce DLL hijack risk on Windows
Tor Lillqvist [Thu, 2 Sep 2010 18:56:02 +0000 (21:56 +0300)]
Recuce DLL hijack risk on Windows

Don't call LoadLibrary() on shell32.dll or kernel32.dll. kernel32.dll
is always loaded. Shell32.dll is also already loaded as glib links to
functions in it. So just call GetModuleHandle() on them.

For mlang.dll in win_iconv.c and winhttp.dll in gwinhttpvfs.c, always
try loading them from a complete path, from the Windows system
directory.

Use the "tool help" API to enumerate modules in gmodule-win32.c. It is
present in all Windows versions since Windows 2000, which is all we
support anyway. Thus no need to look that API up dynamically. Just
link to it normally. We can bin the fallback code that attempts to use
the psapi API.

14 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Thu, 2 Sep 2010 09:56:09 +0000 (11:56 +0200)]
Updated Norwegian bokmål translation

14 years agoModified Armenian translation - po file
noch [Thu, 2 Sep 2010 07:35:02 +0000 (12:35 +0500)]
Modified Armenian translation - po file

14 years agoFix building with zlib < 1.2.4 on win32
Christian Persch [Wed, 1 Sep 2010 13:05:59 +0000 (15:05 +0200)]
Fix building with zlib < 1.2.4 on win32

The gzip header processing functions were only exported
since 1.2.4 on win32, so #ifdef this code accordingly.

Bug #628505.

14 years agoFix small bug in registry backend
Ryan Lortie [Wed, 1 Sep 2010 13:04:41 +0000 (15:04 +0200)]
Fix small bug in registry backend

'n' and 'q' types had their signed/unsigned meaning inverted.

14 years agoAdd GSettings Windows Registry backend
Sam Thursfield [Thu, 12 Aug 2010 15:10:23 +0000 (16:10 +0100)]
Add GSettings Windows Registry backend

14 years agodocs: Inline docs from tmpl/memory.smgl
Jon Nordby [Thu, 26 Aug 2010 14:51:33 +0000 (16:51 +0200)]
docs: Inline docs from tmpl/memory.smgl

14 years agoUpdated Indonesian translation
Andika Triwidada [Wed, 1 Sep 2010 02:54:52 +0000 (09:54 +0700)]
Updated Indonesian translation

14 years agoModified hy.po
noch [Tue, 31 Aug 2010 11:49:31 +0000 (16:49 +0500)]
Modified hy.po

14 years agoModified hy.po
noch [Tue, 31 Aug 2010 07:34:36 +0000 (12:34 +0500)]
Modified hy.po

14 years agoBump version
Matthias Clasen [Tue, 31 Aug 2010 00:47:40 +0000 (20:47 -0400)]
Bump version

14 years agoUpdate symbol list 2.25.15
Matthias Clasen [Mon, 30 Aug 2010 23:29:09 +0000 (19:29 -0400)]
Update symbol list

14 years agoUpdated Serbian translation
Branko Kokanović [Tue, 31 Aug 2010 00:33:26 +0000 (02:33 +0200)]
Updated Serbian translation

14 years agoUpdate British English translation
Philip Withnall [Mon, 30 Aug 2010 21:13:18 +0000 (22:13 +0100)]
Update British English translation

14 years agoAdd one more bug ref
Matthias Clasen [Mon, 30 Aug 2010 20:08:25 +0000 (16:08 -0400)]
Add one more bug ref

14 years agoGDBusProxy: remove superfluous -gdbus-proxy-method-name qdata
David Zeuthen [Mon, 30 Aug 2010 17:58:41 +0000 (13:58 -0400)]
GDBusProxy: remove superfluous -gdbus-proxy-method-name qdata

Looks like we're not using this anymore.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoBug 628324 – Invalid reads in gdbus-export test
David Zeuthen [Mon, 30 Aug 2010 17:45:46 +0000 (13:45 -0400)]
Bug 628324 – Invalid reads in gdbus-export test

Looks like we forgot to ref the returned GVariant in
g_dbus_proxy_call_finish().

It's a good question why code using g_dbus_proxy_call() and
g_dbus_proxy_call_finish() worked in the first place - probably the
answer is that no-one really used these APIs.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoTweak the wording
Matthias Clasen [Mon, 30 Aug 2010 17:28:06 +0000 (13:28 -0400)]
Tweak the wording

14 years agoGAction is now an interface
Ryan Lortie [Mon, 30 Aug 2010 16:58:49 +0000 (18:58 +0200)]
GAction is now an interface

the new class GSimpleAction is the implementation half

14 years agoGActionGroup is now an interface
Ryan Lortie [Mon, 30 Aug 2010 15:31:06 +0000 (17:31 +0200)]
GActionGroup is now an interface

 - make GAction.get_state() return a reference
 - fix some leaks/warnings in the tests
 - fix signal propagation in GSimpleActionGroup

14 years agoUpdate NEWS for 2.25.15
Matthias Clasen [Mon, 30 Aug 2010 17:11:52 +0000 (13:11 -0400)]
Update NEWS for 2.25.15

14 years agoMake g_emblemed_icon_add_emblem() keep the list sorted
Christian Persch [Mon, 30 Aug 2010 14:12:42 +0000 (16:12 +0200)]
Make g_emblemed_icon_add_emblem() keep the list sorted

Fixes bug #628317.

14 years agoDon't leak the FD list
Christian Persch [Mon, 30 Aug 2010 13:53:49 +0000 (15:53 +0200)]
Don't leak the FD list

==6793== 32 (24 direct, 8 indirect) bytes in 1 blocks are definitely lost in loss record 780 of 1,423
==6793==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==6793==    by 0x4057094: g_malloc (gmem.c:134)
==6793==    by 0x406F2D6: g_slice_alloc (gslice.c:836)
==6793==    by 0x406F31B: g_slice_alloc0 (gslice.c:848)
==6793==    by 0x413D5BB: g_type_create_instance (gtype.c:1867)
==6793==    by 0x412372A: g_object_constructor (gobject.c:1482)
==6793==    by 0x4122E1D: g_object_newv (gobject.c:1266)
==6793==    by 0x4122B93: g_object_new (gobject.c:1178)
==6793==    by 0x41DB582: g_unix_fd_list_new_from_array (gunixfdlist.c:191)
==6793==    by 0x421BFD6: _g_dbus_worker_do_read_cb (gdbusprivate.c:590)

Bug #628329.

14 years agoFix invalid reads
Christian Persch [Mon, 30 Aug 2010 14:21:43 +0000 (10:21 -0400)]
Fix invalid reads

Don't use a guint16* when getting a guint property via g_object_get()!

Bug #628323.

14 years agoPlug a mem leak in GConverterOutputStream
Christian Persch [Mon, 30 Aug 2010 14:18:30 +0000 (10:18 -0400)]
Plug a mem leak in GConverterOutputStream

==8221== 1,047 (672 direct, 375 indirect) bytes in 28 blocks are definitely lost in loss record 589 of 603
==8221==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==8221==    by 0x4057094: g_malloc (gmem.c:134)
==8221==    by 0x406F2D6: g_slice_alloc (gslice.c:836)
==8221==    by 0x406F31B: g_slice_alloc0 (gslice.c:848)
==8221==    by 0x403A8A6: g_error_new_literal (gerror.c:117)
==8221==    by 0x403AC31: g_set_error_literal (gerror.c:314)
==8221==    by 0x80499DC: g_compressor_converter_convert (converter-stream.c:267)
==8221==    by 0x417BF67: g_converter_convert (gconverter.c:174)
==8221==    by 0x417D7F0: g_converter_output_stream_write (gconverteroutputstream.c:428)
==8221==    by 0x41B57DF: g_output_stream_write (goutputstream.c:216)
==8221==    by 0x804A367: test_compressor (converter-stream.c:456)

Bug #628309.

14 years agoPlug a mem leak
Christian Persch [Mon, 30 Aug 2010 14:16:31 +0000 (10:16 -0400)]
Plug a mem leak

==6793== 19 (8 direct, 11 indirect) bytes in 1 blocks are definitely lost in loss record 640 of 1,423
==6793==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==6793==    by 0x4057094: g_malloc (gmem.c:134)
==6793==    by 0x40573DB: g_malloc_n (gmem.c:281)
==6793==    by 0x4073D1B: g_strsplit (gstrfuncs.c:2436)
==6793==    by 0x4224A89: initable_init (gdbusserver.c:1040)
==6793==    by 0x41A73F9: g_initable_init (ginitable.c:105)
==6793==    by 0x41A759B: g_initable_new_valist (ginitable.c:218)
==6793==    by 0x41A743E: g_initable_new (ginitable.c:138)
==6793==    by 0x42238F5: g_dbus_server_new_sync (gdbusserver.c:484)

Bug #628328.

14 years agoPlug a mem leak
Christian Persch [Mon, 30 Aug 2010 14:14:39 +0000 (10:14 -0400)]
Plug a mem leak

==6793== 16 bytes in 1 blocks are definitely lost in loss record 632 of 1,423
==6793==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==6793==    by 0x4057094: g_malloc (gmem.c:134)
==6793==    by 0x417FC29: g_data_input_stream_read_line (gdatainputstream.c:797)
==6793==    by 0x41F99C1: _my_g_data_input_stream_read_line (gdbusauth.c:279)
==6793==    by 0x41FA728: _g_dbus_auth_run_client (gdbusauth.c:759)

Bug #628327.

14 years agoAdd an annotation
Matthias Clasen [Mon, 30 Aug 2010 14:02:32 +0000 (10:02 -0400)]
Add an annotation

14 years agoGSocketClient: fix a crash on cancellation
Dan Winship [Mon, 30 Aug 2010 13:23:09 +0000 (09:23 -0400)]
GSocketClient: fix a crash on cancellation

some code rearrangement when adding proxy support resulted in trying to
use a GSocket that wasn't there.

https://bugzilla.gnome.org/show_bug.cgi?id=628296