aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-http-stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-http-stream.c')
-rw-r--r--camel/camel-http-stream.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/camel/camel-http-stream.c b/camel/camel-http-stream.c
index 40bf71fdd3..b754422a3a 100644
--- a/camel/camel-http-stream.c
+++ b/camel/camel-http-stream.c
@@ -200,7 +200,7 @@ http_connect (CamelHttpStream *http, CamelURL *url)
if (camel_tcp_stream_connect (CAMEL_TCP_STREAM (stream), host, url->port ? url->port : 80) == -1) {
errsave = errno;
- camel_object_unref (CAMEL_OBJECT (stream));
+ camel_object_unref (stream);
camel_free_host (host);
errno = errsave;
return NULL;
@@ -280,7 +280,7 @@ http_get_headers (CamelHttpStream *http)
int err;
if (http->parser)
- camel_object_unref (CAMEL_OBJECT (http->parser));
+ camel_object_unref (http->parser);
http->parser = camel_mime_parser_new ();
camel_mime_parser_init_with_stream (http->parser, http->read);
@@ -324,7 +324,7 @@ http_get_headers (CamelHttpStream *http)
err = camel_mime_parser_errno (http->parser);
if (err != 0) {
- camel_object_unref (CAMEL_OBJECT (http->parser));
+ camel_object_unref (http->parser);
http->parser = NULL;
goto exception;
}