Ticket #6536: mythweather_fix.2.patch

File mythweather_fix.2.patch, 1.0 KB (added by Marc Alban <marcalban@…>, 15 years ago)

Alternate patch to fix segfault in MythWeather?.

  • mythplugins/mythweather/mythweather/weather.cpp

     
    304304{
    305305    m_srcMan->stopTimers();
    306306    m_nextpage_Timer->stop();
    307     m_srcMan->clearSources();
    308     m_srcMan->findScripts();
    309307
    310308    MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack();
    311309
  • mythplugins/mythweather/mythweather/main.cpp

     
    6161{
    6262    MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack();
    6363
     64    if (!srcMan)
     65    {
     66        srcMan = new SourceManager();
     67        srcMan->startTimers();
     68        srcMan->doUpdate();
     69    }
    6470    Weather *weather = new Weather(mainStack, "mythweather", srcMan);
    6571
    6672    if (weather->Create())