SDW - Welcome to the site. This is a tough situation and I think that everyone on here has given you some great advise. Your number one priority needs to be you and your daughter and I think protecting her from the use is huge. Does he have visitation rights? Is there a concern with leaving her with him unsupervised?
I am an alcoholic but I went thru a period of coke use and it is a terrible addiction. When I first started using I swore I would never even have it in the car, before I knew it I was doing lines going down the interstate. I tell you this because I would be very cautious about leaving your daughter with him for fear that she would find some of it and get sick.
Also, I just read a great book on codependence. It really helped me understand a lot of things. It is called Facing Codependence by Pia Melody.
Good luck with everything. I think you are doing the right thing. Stay strong and true to yourself.