C++ wrapper: Fix use-after-free issue in List::find_all()
[libftdi] / ftdipp / ftdi.hpp
index ec0e13d..d853717 100644 (file)
@@ -174,7 +174,7 @@ public:
     List(struct ftdi_device_list* devlist = 0);
     ~List();
 
-    static List* find_all(int vendor, int product);
+    static List* find_all(Context &context, int vendor, int product);
 
     /// List type storing "Context" objects
     typedef std::list<Context> ListType;