HI,

I noticed that in our application there are a lot of memory leaks when heap-objects, taht are send around via a Qt signal are not destroyed properly.
And it dont really see a good solution here...


Qt Code:
  1. public signal:
  2. void mysig(myob* x);
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. ....
  2. myob* x = new myob();
  3. emit mysig(x);
  4. ....
To copy to clipboard, switch view to plain text mode 

When am i supposed to delete the "x" argument?