From 1e00bd8f5e4b33772ff9eab5ec4872a60989b4d4 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 26 Aug 2011 12:49:31 +0300 Subject: [PATCH] gobex: fix not handling unkown transport type --- gobex/gobex.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gobex/gobex.c b/gobex/gobex.c index ff35830c7..7c2fbcccb 100644 --- a/gobex/gobex.c +++ b/gobex/gobex.c @@ -884,6 +884,9 @@ GObex *g_obex_new(GIOChannel *io, GObexTransportType transport_type, obex->read = read_packet; obex->write = write_packet; break; + default: + g_obex_unref(obex); + return NULL; } g_io_channel_set_encoding(io, NULL, NULL); -- 2.47.3