project: remove unnecessary dereference
authorLuis de Bethencourt <luis.bg@samsung.com>
Thu, 5 Mar 2015 13:53:15 +0000 (13:53 +0000)
committerLuis de Bethencourt <luis.bg@samsung.com>
Thu, 5 Mar 2015 13:53:32 +0000 (13:53 +0000)
g_clear_error() already dereferences the error pointer, no need to manually
check and do it.

CID #1257630

ges/ges-project.c

index 4d81892915e89f184d9a1b1d872cf507c714332a..c76bf3a38541df7acffbafed2a4ca60744546652 100644 (file)
@@ -764,8 +764,6 @@ ges_project_create_asset_sync (GESProject * project, const gchar * id,
         return NULL;
 
       g_clear_error (error);
-      if (error)
-        *error = NULL;
 
       id = possible_id;
     }