primitives: avoid leaking polygon override materials
authorRobert Bragg <robert@linux.intel.com>
Thu, 25 Nov 2010 20:12:36 +0000 (20:12 +0000)
committerRobert Bragg <robert@linux.intel.com>
Fri, 26 Nov 2010 14:33:50 +0000 (14:33 +0000)
commit58a467c9270ec325431fc963aa8a862ae69fcabf
treee1a9c736a0385022ee6c9b8f13a6c44954601240
parent01b93537ab9743dfd6aa2f0c3d4499420ee860cd
primitives: avoid leaking polygon override materials

If we have to make override changes to the user's source material to
handle cogl_polygon then we need to make sure we unref the override
material at the end.
clutter/cogl/cogl/cogl-primitives.c