aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Morten Kvarving <cptspiff@gmail.com>2014-07-16 17:03:03 +0200
committerRainer Hochecker <fernetmenta@online.de>2014-07-21 18:00:07 +0200
commit82489b120e4a7b9fe04ffe6a251ef592e0417406 (patch)
tree9a7ffe038485eafa527326c23feba9455e4d345a
parent41edfc816cc04d10a2f9c5aebbedd906cd701fd2 (diff)
fixed: some issues pointed out by valgrind
SPLIT ME
-rw-r--r--xbmc/addons/Addon.cpp1
-rw-r--r--xbmc/addons/Addon.h2
-rw-r--r--xbmc/addons/AddonVersion.h2
-rw-r--r--xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp1
-rw-r--r--xbmc/rendering/RenderSystem.cpp3
5 files changed, 7 insertions, 2 deletions
diff --git a/xbmc/addons/Addon.cpp b/xbmc/addons/Addon.cpp
index 1bdb5f14a9..0f2c970a74 100644
--- a/xbmc/addons/Addon.cpp
+++ b/xbmc/addons/Addon.cpp
@@ -180,6 +180,7 @@ AddonProps::AddonProps(const cp_plugin_info_t *plugin)
, path(SS(plugin->plugin_path))
, author(SS(plugin->provider_name))
, stars(0)
+ , type(ADDON_UNKNOWN)
{
BuildDependencies(plugin);
}
diff --git a/xbmc/addons/Addon.h b/xbmc/addons/Addon.h
index 68da98c2bf..7f3e591c5a 100644
--- a/xbmc/addons/Addon.h
+++ b/xbmc/addons/Addon.h
@@ -54,6 +54,8 @@ public:
{
}
+ virtual ~AddonProps() {}
+
AddonProps(const cp_extension_t *ext);
AddonProps(const cp_plugin_info_t *plugin);
diff --git a/xbmc/addons/AddonVersion.h b/xbmc/addons/AddonVersion.h
index be24cc9829..3c23370f9a 100644
--- a/xbmc/addons/AddonVersion.h
+++ b/xbmc/addons/AddonVersion.h
@@ -39,7 +39,7 @@ namespace ADDON
public:
AddonVersion(const AddonVersion& other) { *this = other; }
explicit AddonVersion(const std::string& version);
- ~AddonVersion() {};
+ virtual ~AddonVersion() {};
int Epoch() const { return mEpoch; }
const std::string &Upstream() const { return mUpstream; }
diff --git a/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp b/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
index d6a18f5107..fe5e8934c3 100644
--- a/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
+++ b/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
@@ -44,6 +44,7 @@ void CEngineStats::Reset(unsigned int sampleRate)
m_bufferedSamples = 0;
m_suspended = false;
m_playingPTS = 0;
+ m_clockId = 0;
}
void CEngineStats::UpdateSinkDelay(const AEDelayStatus& status, int samples, int64_t pts, int clockId)
diff --git a/xbmc/rendering/RenderSystem.cpp b/xbmc/rendering/RenderSystem.cpp
index e5a98f69f2..16102bbc9c 100644
--- a/xbmc/rendering/RenderSystem.cpp
+++ b/xbmc/rendering/RenderSystem.cpp
@@ -20,7 +20,8 @@
#include "RenderSystem.h"
-CRenderSystemBase::CRenderSystemBase()
+CRenderSystemBase::CRenderSystemBase() :
+ m_stereoMode(RENDER_STEREO_MODE_OFF), m_stereoView(RENDER_STEREO_VIEW_OFF)
{
m_bRenderCreated = false;
m_bVSync = true;