Commit Graph

14410 Commits

Author SHA1 Message Date
Stef Walter
5a4fc001ae defaultiface: Fix leak in test
https://bugzilla.gnome.org/show_bug.cgi?id=711779
2013-11-13 12:59:42 +01:00
Stef Walter
8dda42d14d giomodule: Fix leaks in module loading
https://bugzilla.gnome.org/show_bug.cgi?id=711798
2013-11-13 12:59:41 +01:00
Stef Walter
4677af675f gdesktopappinfo: Free memory caches and desktop file monitors during cleanup
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:41 +01:00
Stef Walter
ee33d6e07f mimeapps: Don't make this test dependent on behavior of gvfs
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:41 +01:00
Stef Walter
e9d07420ef gdbus-testserver: Fix behavior during cleanup
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:41 +01:00
Stef Walter
037beed390 gdbus-proxy: Fix erroneous timeout during following tests
https://bugzilla.gnome.org/show_bug.cgi?id=711809
2013-11-13 12:59:41 +01:00
Stef Walter
4ae30d11ce gdbus-export: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711802
2013-11-13 12:59:41 +01:00
Stef Walter
32ab77fd85 gdbus-example-export: Fix behavior when using cleanup
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:41 +01:00
Stef Walter
cb69dc5b1d gdbus-auth: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711802
2013-11-13 12:59:41 +01:00
Stef Walter
89a5771cb8 gtestdbus: Cleanup io channel which would otherwise leak
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:41 +01:00
Stef Walter
e3595a89d6 gtestdbus: Properly close server connections
Otherwise g_test_dbus_down() following a g_test_dbus_stop()
will hang until it times out.

https://bugzilla.gnome.org/show_bug.cgi?id=711807
2013-11-13 12:59:41 +01:00
Stef Walter
feacc2c34d gtestdbus: Don't destroy GSource twice
https://bugzilla.gnome.org/show_bug.cgi?id=711806
2013-11-13 12:59:40 +01:00
Stef Walter
19ea5e4635 gdbusname: Cleanup global tables
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:40 +01:00
Stef Walter
b96349d30f gdbusintrospection: Free up cache when done with it
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:40 +01:00
Stef Walter
a0beb13d80 gdbus-connection: Fix race condition in test
The test was expecting that the spawned process wouldn't start
up before the NameOwnerChanged signal was subscribed.

https://bugzilla.gnome.org/show_bug.cgi?id=711805
2013-11-13 12:59:40 +01:00
Stef Walter
885e4429bf gdbusconnection: Fix invalid memory access
Occurs when the string is zero length.

https://bugzilla.gnome.org/show_bug.cgi?id=711804
2013-11-13 12:59:40 +01:00
Stef Walter
daa6d34e46 gsubprocess: Cleanup GSubprocess correctly
Although it's nice that GSubprocess object lives until its
child goes away, this can't be the case during cleanup and or
unloading of gio, since the GLib worker thread will run non-existant
code.

So in the case that GIO hits cleanup, we finalize the GSubprocess
regardless of the state of its child.

https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:40 +01:00
Stef Walter
3e7a2cfda3 gio: Define cleanup scope and lists for gio tests
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:39 +01:00
Stef Walter
ced68f1587 filter-streams: Cleanup custom classes in test
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:39 +01:00
Stef Walter
fb8557bdfc gio/tests: Prevent random gio modules from screwing up these tests
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:39 +01:00
Stef Walter
f5c743c939 gfileinfo: Cleanup memory
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:39 +01:00
Stef Walter
716068850d gcancellable: Free up GPrivate in right cleanup context
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:39 +01:00
Stef Walter
5da529ae0f gtask: Cleanup thread pool
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:39 +01:00
Stef Walter
c654161f03 gsocketconnection: Cleanup global data
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:39 +01:00
Stef Walter
e53479cf7c gresolver: Cleanup global data
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:39 +01:00
Stef Walter
c7144072c3 glocalfile: Cleanup global data
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:39 +01:00
Stef Walter
f741871031 giomodule: Allow overriding source directory gio modules are loaded from
When testing (and valgrinding) we need to have a known set of modules
loaded.

https://bugzilla.gnome.org/show_bug.cgi?id=711801
2013-11-13 12:59:38 +01:00
Stef Walter
812320d46a giomodule: Cleanup global data
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:38 +01:00
Stef Walter
a95b8d5ebf gioenumtypes: Push enum GTypes onto cleanup list
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:38 +01:00
Stef Walter
f4bc304e5c gdbus: Cleanup global static data
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:38 +01:00
Stef Walter
6cc9926a1e gio: Define cleanup scope and list for libgio
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:38 +01:00
Stef Walter
822c22ba39 tests/gobject: Use cleanup for types defined in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711778
2013-11-13 12:59:38 +01:00
Stef Walter
3071adddaf dynamictype: Fix leak in test
https://bugzilla.gnome.org/show_bug.cgi?id=711778
2013-11-13 12:59:38 +01:00
Stef Walter
15240b8500 param: Avoid g_test_add_data_func_full() which leaks
It leaks on tests that have not been run. This is the case when
the g_test_subprocess mechanics are in use.

https://bugzilla.gnome.org/show_bug.cgi?id=711778
2013-11-13 12:59:38 +01:00
Stef Walter
faa42f57f1 gobject: Don't leak pspecs for ininstantiated interfaces
Remove the awkward ownerhsip of pspec by the object. pspecs are
now only owned by the pool, which makes things more predictable.

https://bugzilla.gnome.org/show_bug.cgi?id=711778
2013-11-13 12:59:37 +01:00
Stef Walter
806868941d gvalue: Cleanup global static data
https://bugzilla.gnome.org/show_bug.cgi?id=711778
2013-11-13 12:59:37 +01:00
Stef Walter
df5732fa52 gtypemodule: Allow GTypeModule to be finalized
This is used by the cleanup code.

https://bugzilla.gnome.org/show_bug.cgi?id=711778
2013-11-13 12:59:37 +01:00
Stef Walter
3c0be72a90 gtype: Remove unneeded ref of static parent type
This causes a leak of the parent type.

https://bugzilla.gnome.org/show_bug.cgi?id=711778
2013-11-13 12:59:37 +01:00
Stef Walter
9fb815c000 gparam: Reliably free class info initialization closure
Otherwise we end up in a strange leak where static types leak
unless their class has been ref'd.

https://bugzilla.gnome.org/show_bug.cgi?id=711778
2013-11-13 12:59:37 +01:00
Stef Walter
f79499db95 gobject: Cleanup GObject class stuff
Initial work by: Dan Winship <danw@gnome.org>

https://bugzilla.gnome.org/show_bug.cgi?id=711778
2013-11-13 12:59:37 +01:00
Stef Walter
0922afeb2a gtype: Push registered GType onto the appropriate cleanup list
When G_CLEANUP_SCOPE is defined the G_DEFINE_TYPE and macros
properly push newly registered GTypes onto the cleanup list.

In addition push all the the basic types into the libgobject
cleanup list.

https://bugzilla.gnome.org/show_bug.cgi?id=711778
2013-11-13 12:59:37 +01:00
Stef Walter
4ffc3fd656 gtype: Implement cleanup of GType
Partially from patches from Ole André Vadla Ravnås, and Dan Winship

There are a lot of intertwined pointer references between
types, their vtables, and other bits. Free the memory for them
all together.

Note that we still do all finalization (ie: callbacks) per type
and module, in the relevant cleanup lists.

https://bugzilla.gnome.org/show_bug.cgi?id=711778
2013-11-13 12:59:35 +01:00
Stef Walter
b33fabd585 gatomicarray: Support for cleaning up
Cleanup atomic array manually as very last thing
Otherwise we keep putting stuff in freelist during cleanup.

Initial work by: Dan Winship <danw@gnome.org>

https://bugzilla.gnome.org/show_bug.cgi?id=711778
2013-11-13 09:45:55 +01:00
Stef Walter
11dc3eedb5 gobject: Define a cleanup scope for libgobject
https://bugzilla.gnome.org/show_bug.cgi?id=711778
2013-11-13 09:45:16 +01:00
Stef Walter
b32ca195a6 gmodule: Cleanup main_module, ie: self
https://bugzilla.gnome.org/show_bug.cgi?id=711767
2013-11-13 09:45:14 +01:00
Stef Walter
c9d6518969 gthreadpool: Cleanup thread pool unused threads
This requires different phases getting involved:
 * early: Signal all the unused pool threads, and change unused
   limits to zero, so no new unused pool threads.
 * default: Join all unused pool threads.
 * late: Free up the unused thread queue

https://bugzilla.gnome.org/show_bug.cgi?id=711744
2013-11-13 09:44:21 +01:00
Stef Walter
2361bf79ca threadpool-test: Cleanup memory in test
https://bugzilla.gnome.org/show_bug.cgi?id=711744
2013-11-13 09:42:26 +01:00
Stef Walter
11394e78bb sources: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711751
2013-11-13 09:40:31 +01:00
Stef Walter
26d7b74e51 slice: Don't run GSlice tests under valgrind
https://bugzilla.gnome.org/show_bug.cgi?id=711744
2013-11-13 09:40:25 +01:00
Stef Walter
44c5542eab 642026: Run less locking iterations under valgrind
Otherwise these tests are prohibitively slow.  Under valgrind the
same race conditions aren't likely to show up anyway.

https://bugzilla.gnome.org/show_bug.cgi?id=711744
2013-11-13 09:40:19 +01:00