Maelstrom: Fixed compiler warnings (df06d)

https://github.com/libsdl-org/Maelstrom/commit/df06dd5b9937ec137e9ef0437f464e49f97e503f

From df06dd5b9937ec137e9ef0437f464e49f97e503f Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Wed, 30 May 2012 17:16:29 -0400
Subject: [PATCH] Fixed compiler warnings

---
 screenlib/UIElement.h      | 2 ++
 screenlib/UIElementRadio.h | 2 ++
 screenlib/UIManager.cpp    | 5 +++--
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/screenlib/UIElement.h b/screenlib/UIElement.h
index c0cf964f..52f312a1 100644
--- a/screenlib/UIElement.h
+++ b/screenlib/UIElement.h
@@ -29,6 +29,8 @@
 class UIClickCallback
 {
 public:
+    virtual ~UIClickCallback() { }
+
 	virtual void operator()() = 0;
 };
 
diff --git a/screenlib/UIElementRadio.h b/screenlib/UIElementRadio.h
index 911531b0..4357e04e 100644
--- a/screenlib/UIElementRadio.h
+++ b/screenlib/UIElementRadio.h
@@ -28,6 +28,8 @@
 class UIRadioCallback
 {
 public:
+    virtual ~UIRadioCallback() { }
+
 	virtual void operator ()(int value) = 0;
 };
 
diff --git a/screenlib/UIManager.cpp b/screenlib/UIManager.cpp
index aeb4e15d..6a172d12 100644
--- a/screenlib/UIManager.cpp
+++ b/screenlib/UIManager.cpp
@@ -48,8 +48,9 @@ void
 UIManager::SetLoadPath(const char *path)
 {
 	delete[] m_loadPath;
-	m_loadPath = new char[SDL_strlen(path)+1];
-	SDL_strlcpy(m_loadPath, path, SDL_strlen(path)+1);
+    size_t size = SDL_strlen(path)+1;
+	m_loadPath = new char[size];
+	SDL_strlcpy(m_loadPath, path, size);
 }
 
 bool