Diff between f264b1c744396b4b723f34f699526592a519edb1 and 1e00bd8f5e4b33772ff9eab5ec4872a60989b4d4
Changed Files
| File | Additions | Deletions | Status |
| gobex/gobex.c | +3 | -0 | modified |
Full Patch
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);