[gvfs] afp: fix invalid unref



commit 80f6ee92b45088817058e145fc3c0578ab8eb895
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date:   Wed Jul 13 23:28:10 2011 +0200

    afp: fix invalid unref

 daemon/gvfsafpconnection.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/daemon/gvfsafpconnection.c b/daemon/gvfsafpconnection.c
index be9b56a..207c145 100644
--- a/daemon/gvfsafpconnection.c
+++ b/daemon/gvfsafpconnection.c
@@ -611,13 +611,13 @@ run_loop (GVfsAfpConnection *afp_connection)
 
   if (!priv->send_loop_running)
   {
-    send_request (afp_connection);
     priv->send_loop_running = TRUE;
+    send_request (afp_connection);
   }
   if (!priv->read_loop_running)
   {
-    read_reply (afp_connection);
     priv->read_loop_running = TRUE;
+    read_reply (afp_connection);
   }
 }
 
@@ -920,7 +920,7 @@ g_vfs_afp_connection_queue_command (GVfsAfpConnection *afp_connection,
 
   RequestData *request_data;
   
-  request_data = g_slice_new (RequestData);
+  request_data = g_slice_new0 (RequestData);
   request_data->tickle = FALSE;
   request_data->command = g_object_ref (command);
   request_data->reply_cb = reply_cb;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]