[gnome-bluetooth] lib: Nobody uses g_try_new()...
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] lib: Nobody uses g_try_new()...
- Date: Wed, 28 Sep 2011 13:49:43 +0000 (UTC)
commit af9290d4966cba85a031cf9c631b126981cb9b3e
Author: Bastien Nocera <hadess hadess net>
Date: Wed Sep 28 12:51:33 2011 +0100
lib: Nobody uses g_try_new()...
lib/bluetooth-client.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index 176a552..a3279c8 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -1529,10 +1529,7 @@ gboolean bluetooth_client_create_device (BluetoothClient *client,
g_object_unref (device);
}
- devdata = g_try_new0(CreateDeviceData, 1);
- if (devdata == NULL)
- return FALSE;
-
+ devdata = g_new0 (CreateDeviceData, 1);
devdata->func = func;
devdata->data = data;
devdata->client = g_object_ref (client);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]