From 764501482e5e0bafb0cee7d9dd16a69bce645d9c Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 2 Apr 2010 19:20:53 -0700 Subject: Fix some cases where g_try_new should be used --- gatchat/gatmux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gatchat/gatmux.c') diff --git a/gatchat/gatmux.c b/gatchat/gatmux.c index 3902956d..44d2ee8c 100644 --- a/gatchat/gatmux.c +++ b/gatchat/gatmux.c @@ -539,7 +539,7 @@ GAtMux *g_at_mux_new(GIOChannel *channel, const GAtMuxDriver *driver) if (!channel) return NULL; - mux = g_new0(GAtMux, 1); + mux = g_try_new0(GAtMux, 1); if (!mux) return NULL; -- cgit v1.2.3