diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2015-07-10 12:20:13 +0100 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2015-07-10 12:22:19 +0100 |
commit | 00ec26d6c1e0c29ea09c89df3d3667e329bc6008 (patch) | |
tree | 30271d4b0fc731169f114e5a84f52c0abd54c1c5 | |
parent | bcdf3c9f4dc59774f733c1cdcb7ca30d465bc1b9 (diff) | |
download | libgdata-00ec26d6c1e0c29ea09c89df3d3667e329bc6008.tar.gz |
youtube: Fix a potential NULL object dereference
-rw-r--r-- | gdata/services/youtube/gdata-youtube-video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdata/services/youtube/gdata-youtube-video.c b/gdata/services/youtube/gdata-youtube-video.c index 8148a550..f7d07630 100644 --- a/gdata/services/youtube/gdata-youtube-video.c +++ b/gdata/services/youtube/gdata-youtube-video.c @@ -1953,7 +1953,7 @@ gdata_youtube_video_set_category (GDataYouTubeVideo *self, GDataMediaCategory *c g_return_if_fail (GDATA_IS_MEDIA_CATEGORY (category)); g_object_ref (category); - g_object_unref (self->priv->category); + g_clear_object (&self->priv->category); self->priv->category = category; g_object_notify (G_OBJECT (self), "category"); } |