<div class="gmail_quote">On Tue, Apr 6, 2010 at 5:51 PM, brezhoneg1 <span dir="ltr"><<a href="mailto:brezhoneg1@yahoo.fr" target="_blank">brezhoneg1@yahoo.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br>The thing is there are not many solutions<br>
<br>
  - QMenu needs a QWidget as parent<br>
  - dialog_provider (as a dialog provider only) doesn't have any widget<br>
  - Leaving QMenu without parent is just plain memory leak, and leads to vlc objects leak at times.<br><br></blockquote><div><br>I agree that creating QObjects without parents is not the best practice and somewhat risky. I think though, that those popup menus are reasonable exception, if we can ensure that they get deleted when necessary.<br>
p_intf->p_sys->p_popup_menu pointer is the device to make that possible and prevent "plain" memory leaks.<br>
</div></div>