Question about the C++/CLI wrapper

Jun 29, 2010 at 3:49 AM

Hello,

I've never used C++/CLI, and I'm no C++ guru either, so it's probably a stupid question, but I'll ask anyway, simply because I really don't know the answer :D

In the file Cjc.AwesomiumWrapper.h, in the class WebView, there are two InjectKeyboardEvent methods. In them, a WebKeyboardEvent object is created using the new operator. How will it get destroyed? Is Awesomium::WebView supposed to take care of that?

 

Thank you, and sorry if it's a stupid question :D

Coordinator
Jul 25, 2010 at 5:24 AM

It's a great question :)  The likelihood is I missed it and it'll leak like crazy.  I'll take a closer look and fix if needed; thanks! :)

Coordinator
Jul 25, 2010 at 7:05 AM

kevindqc - Thanks for catching this!  I've fixed it and will update the source here soon :)