fixed padsp wrapping bug and g_free bug causing segfault