asset: Reuse local variable

Differential Revision: https://phabricator.freedesktop.org/D1573
This commit is contained in:
Alexandru Băluț 2016-12-21 11:39:12 +01:00 committed by Thibault Saunier
parent e0fba540f2
commit 6b9faec7dc

View file

@ -690,7 +690,7 @@ ges_asset_set_proxy (GESAsset * asset, GESAsset * proxy)
if (asset->priv->proxies) { if (asset->priv->proxies) {
GESAsset *old_proxy = GES_ASSET (asset->priv->proxies->data); 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), g_object_notify_by_pspec (G_OBJECT (old_proxy),
_properties[PROP_PROXY_TARGET]); _properties[PROP_PROXY_TARGET]);
} }