asset: Reuse local variable
authorAlexandru Băluț <alexandru.balut@gmail.com>
Wed, 21 Dec 2016 10:39:12 +0000 (11:39 +0100)
committerThibault Saunier <thibault.saunier@osg.samsung.com>
Mon, 9 Jan 2017 14:43:11 +0000 (11:43 -0300)
Differential Revision: https://phabricator.freedesktop.org/D1573

ges/ges-asset.c

index ab6499e..225af31 100644 (file)
@@ -690,7 +690,7 @@ ges_asset_set_proxy (GESAsset * asset, GESAsset * proxy)
     if (asset->priv->proxies) {
       GESAsset *old_proxy = GES_ASSET (asset->priv->proxies->data);
 
-      GES_ASSET (asset->priv->proxies->data)->priv->proxy_target = NULL;
+      old_proxy->priv->proxy_target = NULL;
       g_object_notify_by_pspec (G_OBJECT (old_proxy),
           _properties[PROP_PROXY_TARGET]);
     }