Menu

#244 Patch for segfualt on closing in linux

open
nobody
None
5
2012-10-10
2011-03-04
No

After selecting a shader, closing the program will cause a segfault on close. I've traced this problem to MultiViewer_Container * GLArea::mvc()

The structure of the lloop causes curParent->parent to dereference a null pointer when curParent is already 0.

I've attached a patch that fixes the bug for me by checking for the null pointer but there may be a better way in a higher level routine.

Discussion

  • Cameron Kellough

     
  • Cameron Kellough

    The same bug exists in the routine MainWindow * GLArea::mw()

     
  • Cameron Kellough

    The same problem happens in MainWindow * GLArea::mw()

     

Log in to post a comment.

MongoDB Logo MongoDB