* libsoup/soup-connection.c (set_current_request,
clear_current_request): Fix g_object_add/remove_weak_pointer usage
to prevent a crash when canceling a request. From Tambet.
+2005-08-22 Dan Winship <danw@novell.com>
+
+ * libsoup/soup-connection.c (set_current_request,
+ clear_current_request): Fix g_object_add/remove_weak_pointer usage
+ to prevent a crash when canceling a request. From Tambet.
+
2005-08-16 Dan Winship <danw@novell.com>
Fix a connection leak reported by Tambet.
req->status = SOUP_MESSAGE_STATUS_RUNNING;
priv->cur_req = req;
priv->in_use = TRUE;
- g_object_add_weak_pointer (G_OBJECT (req), (gpointer *)priv->cur_req);
+ g_object_add_weak_pointer (G_OBJECT (req), (gpointer *)&priv->cur_req);
}
static void
priv->last_used = time (NULL);
g_object_remove_weak_pointer (G_OBJECT (priv->cur_req),
- (gpointer *)priv->cur_req);
+ (gpointer *)&priv->cur_req);
priv->cur_req = NULL;
}
priv->in_use = FALSE;