gvfs r1505 - in trunk: . daemon
- From: gicmo svn gnome org
- To: svn-commits-list gnome org
- Subject: gvfs r1505 - in trunk: . daemon
- Date: Mon, 3 Mar 2008 13:22:29 +0000 (GMT)
Author: gicmo
Date: Mon Mar 3 13:22:28 2008
New Revision: 1505
URL: http://svn.gnome.org/viewvc/gvfs?rev=1505&view=rev
Log:
2008-03-03 Christian Kellner <gicmo gnome org>
* daemon/gvfsjob.c: (g_vfs_job_try): Make sure the g_object_unref
call is _before_ the return call.
Fixes bug #519867
Modified:
trunk/ChangeLog
trunk/daemon/gvfsjob.c
Modified: trunk/daemon/gvfsjob.c
==============================================================================
--- trunk/daemon/gvfsjob.c (original)
+++ trunk/daemon/gvfsjob.c Mon Mar 3 13:22:28 2008
@@ -204,18 +204,19 @@
g_vfs_job_try (GVfsJob *job)
{
GVfsJobClass *class;
+ gboolean res;
class = G_VFS_JOB_GET_CLASS (job);
- /* Ensure that the job lives durint the whole
+ /* Ensure that the job lives during the whole
* lifetime of the call, as it may disappear when
* we call g_vfs_job_succeed/fail()
*/
g_object_ref (job);
-
- return class->try (job);
-
+ res = class->try (job);
g_object_unref (job);
+
+ return res;
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]