From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> --- gobex/gobex.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/gobex/gobex.c b/gobex/gobex.c index ff35830..7c2fbcc 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); -- 1.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html