libcheese: Free format when not used
authorLuciana Fujii Pontello <luciana.fujii@collabora.co.uk>
Fri, 20 May 2011 20:59:38 +0000 (17:59 -0300)
committerLuciana Fujii Pontello <luciana.fujii@collabora.co.uk>
Tue, 24 May 2011 20:00:20 +0000 (17:00 -0300)
commit91a5fc49d2bbd4b228316c21ad945c35f73453ec
tree0c0030f1833420cd7e0fd6021806ab57bddc968f
parente506634277aca95c884b6cea2c4a1243c22b670d
libcheese: Free format when not used

When a format has the same resolution then a previously added format we
discard it, and should free it before returning.
libcheese/cheese-camera-device.c