miniobject: fix error in the weak ref handling
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 15 Jun 2012 08:56:13 +0000 (10:56 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 15 Jun 2012 08:58:21 +0000 (10:58 +0200)
commite57cda1429678421193d13502e8314104a10de95
treeea159ef9d5183dc20153926c4d1f61cf96625046
parent12aefaa078c380bb6ebe1fffe9134908e6fae347
miniobject: fix error in the weak ref handling

When 2 weak refs are added, the array is not resized big enough.
Simplify the weak ref handling code.
Free memory when we remove all weak refs.
Allow installing the same weak ref multiple times, like in gobject.
gst/gstminiobject.c