Fix memory leak of CGUIViewState
authorChris Gilbert <chris@dokein.co.uk>
Mon, 5 May 2014 09:03:18 +0000 (10:03 +0100)
committerJonathan Marshall <jmarshall@never.you.mind>
Tue, 6 May 2014 22:43:19 +0000 (10:43 +1200)
commit638fd06a099f155683b337ffee87d8e758d11067
tree59d1916f5c38a34e4b6d9d28da30c172072d8e56
parent6af2da2cc9d82fff7e1bcf2fcec96f6a7d5d2fba
Fix memory leak of CGUIViewState

Follow other examples, and use auto_ptr to make sure that the ViewState
object is freed when it goes out of scope

Coverity CID 1211800
xbmc/interfaces/Builtins.cpp