Return and warn if a handle's refcount is <= 0
authorColin Walters <walters@verbum.org>
Fri, 12 Mar 2010 22:39:27 +0000 (17:39 -0500)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 15 Mar 2010 16:22:20 +0000 (16:22 +0000)
commit60d8369a1afaba4efdd64688e4157bc4b48b7525
tree67978b72bc86fe3a64c274a11e199ccc181fc60b
parentc274118a8f7ed18e5bc703e614a9ea0a7cdb553c
Return and warn if a handle's refcount is <= 0

This makes it more likely consumers notice invalid unreferences.
GObject has the same assertion.

http://bugzilla.openedhand.com/show_bug.cgi?id=2029

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
clutter/cogl/cogl/cogl-util.c