video-overlay-composition: fix GSlice alloc/free size mismatch
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 19 Jul 2012 12:33:22 +0000 (13:33 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 19 Jul 2012 12:39:25 +0000 (13:39 +0100)
commited8504e5906f9420999dc02b31d18e0be47ea557
treee8b42d3d4db27255b1748f2b012d35dd5a442d0d
parent9eb8b64bb0ee2e97643b7b98ef60afcdbf244e1b
video-overlay-composition: fix GSlice alloc/free size mismatch

Fix copy'n'paste bug which made us allocate a slice of the
size of a rectangle for the overlay composition, but then
free it passing the size of an overlay composition, which
is not something GSlice takes to kindly, resulting in scary
aborts like:

***MEMORY-ERROR***: GSlice: assertion failed: sinfo->n_allocated > 0

Also, g_slice_new already includes a cast, so remove our
own casts, without which the compiler would probably have
told us about this ages ago.

https://bugzilla.gnome.org/show_bug.cgi?id=680091
gst-libs/gst/video/video-overlay-composition.c