Be more careful about memory management
Be more careful about memory management

This was leading to crashes, e.g. bug 616432.

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