diff --git a/recmanager.c b/recmanager.c index df65cc3..215a425 100644 --- a/recmanager.c +++ b/recmanager.c @@ -423,9 +423,9 @@ const cEvent **cRecManager::PerformSearchTimerSearch(std::string epgSearchString numResults = results.size(); if (numResults > 0) { searchResults = new const cEvent *[numResults]; - cSchedulesLock *schedulesLock; + cSchedulesLock schedulesLock; const cSchedules *schedules; - schedules = cSchedules::Schedules(*schedulesLock); + schedules = cSchedules::Schedules(schedulesLock); const cEvent *event = NULL; int index=0; for (std::list::iterator it=results.begin(); it != results.end(); ++it) {