summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorDenis Loh <denis.loh@gmail.com>2009-10-30 18:30:57 +0100
committerDenis Loh <denis.loh@gmail.com>2009-10-30 18:30:57 +0100
commit4510b4d123a4f62c49c55fa517f15df4fa90ebec (patch)
tree14ecc25fa32cc8205a6334efacd379655b6e3f91 /server
parent7d596d673c1918eb962acf296a518ac5e50815fc (diff)
downloadvdr-plugin-upnp-4510b4d123a4f62c49c55fa517f15df4fa90ebec.tar.gz
vdr-plugin-upnp-4510b4d123a4f62c49c55fa517f15df4fa90ebec.tar.bz2
Fixed memory leak with device description
Diffstat (limited to 'server')
-rw-r--r--server/server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/server.cpp b/server/server.cpp
index feebcb1..03750bd 100644
--- a/server/server.cpp
+++ b/server/server.cpp
@@ -118,7 +118,7 @@ bool cUPnPServer::init(void){
//register media server device to SDK
cString URLBase = cString::sprintf("http://%s:%d", UpnpGetServerIpAddress(), UpnpGetServerPort());
- this->mDeviceDescription = cDlna::getInstance()->getDeviceDescription(URLBase);
+ this->mDeviceDescription = cString(cDlna::getInstance()->getDeviceDescription(URLBase),true);
MESSAGE("Register Media Server Device");
ret = UpnpRegisterRootDevice2(UPNPREG_BUF_DESC,