Skip to content

Commit

Permalink
MythGallery: Fix coverity ID 1026728 Uninitialized pointer field
Browse files Browse the repository at this point in the history
In GLSingleView::GLSingleView(): Several fields are not initialized in the
constructor.
  • Loading branch information
Paul Harrison committed Jun 8, 2013
1 parent a1f0480 commit a7d4653
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mythplugins/mythgallery/mythgallery/glsingleview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,19 @@ GLSingleView::GLSingleView(ThumbList itemList, int *pos, int slideShow,
m_effect_cube_xrot(0.0f),
m_effect_cube_yrot(0.0f),
m_effect_cube_zrot(0.0f),
m_effect_kenBurns_image_timeout(0.0f),
m_effect_kenBurns_imageLoadThread(NULL),
m_effect_kenBurns_image_ready(true),
m_effect_kenBurns_item(NULL),
m_effect_kenBurns_initialized(false),
m_effect_kenBurns_new_image_started(true)
{
m_scaleMax = (ScaleMax) gCoreContext->GetNumSetting("GalleryScaleMax", 0);

m_effect_kenBurns_location_x[0] = m_effect_kenBurns_location_x[1] = 0;
m_effect_kenBurns_location_y[0] = m_effect_kenBurns_location_y[1] = 0;
m_effect_kenBurns_projection[0] = m_effect_kenBurns_projection[1] = 0;

m_slideshow_timer = new QTimer(this);
RegisterEffects();

Expand Down

0 comments on commit a7d4653

Please sign in to comment.