summaryrefslogtreecommitdiff
path: root/gdata/tests/contacts.c
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2013-08-01 17:52:54 +0200
committerPhilip Withnall <philip@tecnocode.co.uk>2013-08-02 07:47:09 +0200
commit288391e657c890338bf49b00228171b84d8c90be (patch)
treed0c414b0aa0eed575f9c959207cda3e29bd4c4a0 /gdata/tests/contacts.c
parentc0e74d66779fbb1310e24950e514cf7e861958d7 (diff)
downloadlibgdata-288391e657c890338bf49b00228171b84d8c90be.tar.gz
core: Fix race condition in upload thread instantiation
The upload thread takes a reference on the GDataUploadStream, but the stream could be finalised while the thread is still being created; hence once the thread main function starts and calls g_object_ref(), the GDataUploadStream has already been destroyed. Move the g_object_ref() call to before the thread instantiation to fix this.
Diffstat (limited to 'gdata/tests/contacts.c')
0 files changed, 0 insertions, 0 deletions