ValuePairs: fixed some memory leak

  * free all the content of the g_ptr_array, not just the array itself
    (Viktor Tusa fixed it in 3.6)
  * free the g_ptr_array() when failed to split the vp names
    (found by Balazs Scheidler)