libftdi Archives

Subject: RE: libftdi-1.0: Reduce memory leaks

From: Uwe Bonnes <bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Mon, 7 Jun 2010 21:04:09 +0200
>>>>> "Michael" == Michael Plante <michael.plante@xxxxxxxxx> writes:



    Michael> I admit I haven't been looking at libftdi-1.0 much yet, but
    Michael> does libftdi-1 not yet support non-default libusb contexts
    Michael> (i.e., libusb_context * != NULL)?  

Yes.

But libftdi doesn't yet hold the context. Why do you need the context?

If the context is needed, we must add the context to libftdi context and
fill and use the libusb context in the appropriate calls.


    Michael> (That will be a stumbling
    Michael> point before I can upgrade from 0.1...

Should I prepare a patch?

-- 
Uwe Bonnes                bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread