g_array_free, g_ptr_array_free: decrement refcount if not the last ref
g_array_free, g_ptr_array_free: decrement refcount if not the last ref

foo_free is conceptually "worth" one unref; not decrementing the
refcount here means the GArray or GPtrArray wrapper (but not its
contents) would leak in the following call sequence:

    p = g_ptr_array_new ();
    g_ptr_array_ref (p);
    g_ptr_array_free (p, TRUE);
    g_ptr_array_unref (p);

Signed-off-by: Simon McVittie <2b470b34502dbf3ba4bcc04ea7e64f4e0e104f33@collabora.co.uk>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=666113
Reviewed-by: Emmanuele Bassi <049ee2061f71220e5aaf33f5be422fc2a2b06a44@linux.intel.com>

MathieuDuponchelle/glib,01org/android-bluez-glib,lukasz-skalski/glib,mzabaluev/glib,ieei/glib,Distrotech/glib,johne53/MB3Glib,Distrotech/glib,cosimoc/glib,tamaskenez/glib,lukasz-skalski/glib,pstglia/platform-external-bluetooth-glib,djdeath/glib,cention-sany/glib,pstglia/platform-external-bluetooth-glib,djdeath/glib,cosimoc/glib,Distrotech/glib,justinkb/aosp-bluez.glib,tamaskenez/glib,pstglia/external-bluetooth-glib,johne53/MB3Glib,iConsole/Console-OS_external_bluetooth_glib,cosimoc/glib,mzabaluev/glib,pstglia/external-bluetooth-glib,gale320/glib,justinkb/aosp-bluez.glib,johne53/MB3Glib,endlessm/glib,cention-sany/glib,pstglia/external-bluetooth-glib,gale320/glib,endlessm/glib,krichter722/glib,bluez-android/glib,iConsole/Console-OS_external_bluetooth_glib,gale320/glib,lukasz-skalski/glib,endlessm/glib,antono/glib,antono/glib,antono/glib,gale320/glib,darren-clark/android_platform_external_bluetooth_glib,bluez-android/glib,ieei/glib,tchakabam/glib,iConsole/Console-OS_external_bluetooth_glib,Distrotech/glib,tamaskenez/glib,MathieuDuponchelle/glib,justinkb/aosp-bluez.glib,tchakabam/glib,mzabaluev/glib,tamaskenez/glib,johne53/MB3Glib,krichter722/glib,bluez-android/glib,endlessm/glib,tchakabam/glib,01org/android-bluez-glib,iConsole/Console-OS_external_bluetooth_glib,johne53/MB3Glib,cention-sany/glib,johne53/MB3Glib,Distrotech/glib,MathieuDuponchelle/glib,ieei/glib,cention-sany/glib,pstglia/external-bluetooth-glib,tamaskenez/glib,djdeath/glib,cosimoc/glib,gale320/glib,lukasz-skalski/glib,bluez-android/glib,tchakabam/glib,iConsole/Console-OS_external_bluetooth_glib,mzabaluev/glib,pstglia/platform-external-bluetooth-glib,01org/android-bluez-glib,darren-clark/android_platform_external_bluetooth_glib,01org/android-bluez-glib,djdeath/glib,01org/android-bluez-glib,krichter722/glib,justinkb/aosp-bluez.glib,bluez-android/glib,endlessm/glib,darren-clark/android_platform_external_bluetooth_glib,antono/glib,lukasz-skalski/glib,darren-clark/android_platform_external_bluetooth_glib,cention-sany/glib,krichter722/glib,ieei/glib,pstglia/platform-external-bluetooth-glib,cosimoc/glib,pstglia/platform-external-bluetooth-glib,krichter722/glib,MathieuDuponchelle/glib,tchakabam/glib,mzabaluev/glib,justinkb/aosp-bluez.glib,ieei/glib,djdeath/glib,MathieuDuponchelle/glib,darren-clark/android_platform_external_bluetooth_glib,pstglia/external-bluetooth-glib