[mythtv-commits] mythtv commit: r11751 - in trunk/mythtv by danielk
mythtv at cvs.mythtv.org
mythtv at cvs.mythtv.org
Wed Nov 15 16:18:52 UTC 2006
Author: danielk
Date: 2006-11-15 16:18:51 +0000 (Wed, 15 Nov 2006)
New Revision: 11751
Changeset: http://cvs.mythtv.org/trac/changeset/11751
Modified:
trunk/mythtv/libs/libmythtv/customedit.cpp
trunk/mythtv/libs/libmythtv/proglist.cpp
trunk/mythtv/libs/libmythtv/programinfo.cpp
trunk/mythtv/libs/libmythtv/scheduledrecording.cpp
trunk/mythtv/libs/libmythtv/scheduledrecording.h
trunk/mythtv/libs/libmythtv/tv_play.cpp
trunk/mythtv/programs/mythbackend/mainserver.cpp
trunk/mythtv/programs/mythfrontend/manualschedule.cpp
trunk/mythtv/programs/mythfrontend/playbackbox.cpp
trunk/mythtv/programs/mythfrontend/programrecpriority.cpp
Log:
Fixes an unsafe deletion problem noticed when fixing the scheduledrecording's dialog problem.
ScheduledRecording inherits from QObject and uses signals and slots so it must be deleted with deleteLater(), especially when used outside the Qt event thread. This changeset makes all these deletes Qt safe by calling deleteLater() to delete the ScheduledRecording instance. This also deletes the RootSRGroup in ~ScheduledRecording safely as well (same problem) and makes ScheduledRecording::getRootGroup() return a QGuardedPtr.
More information about the mythtv-commits
mailing list