memory: don't unref allocator too soon
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 26 Feb 2013 13:40:38 +0000 (14:40 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 26 Feb 2013 13:40:38 +0000 (14:40 +0100)
commitf37fc1d2992963b5948c74890c79e006b96c87a2
treee1ff4901fa83a9d58aa3e248464c942541cc00d7
parent2ca00469347487c31946fba36e75ca8d2be010ce
memory: don't unref allocator too soon

Unref the allocator *after* we have freed the memory. We also need to keep
a ref to the allocator around because following the now freed memory would
lead to crashes.
gst/gstmemory.c