[mythtv-commits] mythtv/master commit: 2f248f130 by Gavin Hurlbut (Beirdo)

MythTV noreply at mythtv.org
Wed Feb 9 21:02:42 UTC 2011


      Author:  Gavin Hurlbut <ghurlbut at mythtv.org>
 Change Date:  2011-02-09T13:00:26-08:00
   Push Date:  2011/02/09 13:02:40 -0800
  Repository:  mythtv
      Branch:  master
New Revision:  2f248f1309d0c4c6750fe80efe17421ed47d842c
   Changeset:  https://github.com/MythTV/mythtv/commit/2f248f130

Log:

Change to using QPointer so double delete issues stop

We keep on seem to get some race conditions with myth_system launched things
exiting too fast (i.e. command not found, fast crashes) and causing a set of
race conditions involving deleting the MythSystemUnix item when the process
ends.  The use of QPointer should avoid these problems as when a QPointer item
is deleted, the reference is automatically zeroed, even if it was deleted
elsewhere (or so the docs seem to say).  With that plus a few more null checks
and we can avoid using it after it's freed.

Modified:

   mythtv/libs/libmythbase/system-unix.cpp
   mythtv/libs/libmythbase/system-unix.h



More information about the mythtv-commits mailing list