Merge PR #362: Kodi: Fix a small leak when removing kodi things
This commit is contained in:
commit
07ffa2f229
@ -176,6 +176,11 @@ Kodi::Kodi(const QHostAddress &hostAddress, int port, int httpPort, QObject *par
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Kodi::~Kodi()
|
||||||
|
{
|
||||||
|
delete m_virtualFs;
|
||||||
|
}
|
||||||
|
|
||||||
QHostAddress Kodi::hostAddress() const
|
QHostAddress Kodi::hostAddress() const
|
||||||
{
|
{
|
||||||
return m_connection->hostAddress();
|
return m_connection->hostAddress();
|
||||||
|
|||||||
@ -49,6 +49,7 @@ class Kodi : public QObject
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
explicit Kodi(const QHostAddress &hostAddress, int port = 9090, int httpPort = 8080, QObject *parent = nullptr);
|
explicit Kodi(const QHostAddress &hostAddress, int port = 9090, int httpPort = 8080, QObject *parent = nullptr);
|
||||||
|
~Kodi();
|
||||||
|
|
||||||
QHostAddress hostAddress() const;
|
QHostAddress hostAddress() const;
|
||||||
int port() const;
|
int port() const;
|
||||||
@ -124,6 +125,7 @@ private:
|
|||||||
class VirtualFsNode {
|
class VirtualFsNode {
|
||||||
public:
|
public:
|
||||||
VirtualFsNode(const BrowserItem &item):item(item) {}
|
VirtualFsNode(const BrowserItem &item):item(item) {}
|
||||||
|
~VirtualFsNode() { qDeleteAll(childs); }
|
||||||
BrowserItem item;
|
BrowserItem item;
|
||||||
QList<VirtualFsNode*> childs;
|
QList<VirtualFsNode*> childs;
|
||||||
QString getMethod;
|
QString getMethod;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user