Commit 24b2e9cc authored by Bastien Nocera's avatar Bastien Nocera Committed by W. Michael Petullo

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=755210Signed-off-by: W. Michael Petullo's avatarW. Michael Petullo <mike@flyn.org>
parent 6b3d20ec
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment