examples/ges-ui: Remove useless NULL check
authorSebastian Dröge <sebastian@centricular.com>
Tue, 28 Feb 2017 10:50:31 +0000 (12:50 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 28 Feb 2017 10:50:31 +0000 (12:50 +0200)
g_new0() will abort if allocation fails.

CID 1139842

examples/c/ges-ui.c

index 2c9e1f3..85005d7 100644 (file)
@@ -1259,9 +1259,6 @@ app_init (void)
 
   ret->selected_type = G_TYPE_NONE;
 
-  if (!ret)
-    return NULL;
-
   if (!(ret->timeline = ges_timeline_new ()))
     goto fail;