[libdmapsharing] Remove memory failure check
- From: W. Michael Petullo <wmpetullo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdmapsharing] Remove memory failure check
- Date: Sat, 12 Nov 2016 01:19:09 +0000 (UTC)
commit 24b2e9ccb5ae4c6bd260b374aec1d2872c8732f1
Author: Bastien Nocera <hadess hadess net>
Date: Fri Sep 18 11:49:59 2015 +0200
Remove memory failure check
GLib never fails to allocate memory. At least not in a way that
applications can do anything about it.
"If any call to allocate memory fails, the application is terminated.
This also means that there is no need to check if the call succeeded."
https://bugzilla.gnome.org/show_bug.cgi?id=755210
Signed-off-by: W. Michael Petullo <mike flyn org>
libdmapsharing/daap-share.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/libdmapsharing/daap-share.c b/libdmapsharing/daap-share.c
index 0fc03eb..063639c 100644
--- a/libdmapsharing/daap-share.c
+++ b/libdmapsharing/daap-share.c
@@ -416,10 +416,6 @@ send_chunked_file (SoupServer * server, SoupMessage * message,
ChunkData *cd = NULL;
cd = g_new (ChunkData, 1);
- if (NULL == cd) {
- g_warning ("Error allocating chunk\n");
- goto _error;
- }
g_object_get (record, "location", &location, "has-video", &has_video, NULL);
if (NULL == location) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]