Correction bug lors de la Fermeture de la contactlist
authormarseille@marseille-desktop
Wed, 17 Jun 2009 20:21:14 +0200
changeset 238 ef8d8745894a
parent 237 66ea747448ea
child 239 65369afd96d3
Correction bug lors de la Fermeture de la contactlist
src/com/beem/project/beem/ui/ContactList.java
--- a/src/com/beem/project/beem/ui/ContactList.java	Wed Jun 17 20:14:11 2009 +0200
+++ b/src/com/beem/project/beem/ui/ContactList.java	Wed Jun 17 20:21:14 2009 +0200
@@ -90,7 +90,13 @@
 	bindService(new Intent(this, BeemService.class), mServConn, BIND_AUTO_CREATE);
 	mHandler = new Handler();
 	groupMap = new HashMap<String, List<Contact>>();
-	groupName = new ArrayList<String>();	
+	groupName = new ArrayList<String>();
+    }
+
+    @Override
+    protected void onDestroy() {
+	super.onDestroy();
+	unbindService(mServConn);
     }
 
     private void buildContactList(List<Contact> listContact) {