pad: _start_task() will leak the user data if the task is in paused state
Submitted by Nicolas Dufresne
The pad does not mimic one to one the GstTask API. So basically gst_pad_start_stask() is a combination of task_new() and task_start(). When the task has been paused, this function behaves like task_start() ignoring the callback, user data and destroy notify. This is kind of bug prone, as code may expect these to be updated.
But the main problem is that the userdata will be leaked since the GDestroyNotify is not called.