mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Memory leak:
- getLocalInterfaces -> iptable = (MIB_IPADDRTABLE *) malloc(dwSize); - main -> RshareSettings *_settings = new RshareSettings(); ExtAddrFinder::~ExtAddrFinder - use free for pointer allocated with malloc git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2882 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
23a0b60e59
commit
465cd42463
@ -352,6 +352,8 @@ std::list<std::string> getLocalInterfaces()
|
|||||||
addrs.push_back(inet_ntoa(addr));
|
addrs.push_back(inet_ntoa(addr));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free (iptable);
|
||||||
|
|
||||||
return addrs;
|
return addrs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -267,7 +267,7 @@ ExtAddrFinder::~ExtAddrFinder()
|
|||||||
|
|
||||||
delete _found ;
|
delete _found ;
|
||||||
delete _searching ;
|
delete _searching ;
|
||||||
delete _addr ;
|
free (_addr) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
ExtAddrFinder::ExtAddrFinder()
|
ExtAddrFinder::ExtAddrFinder()
|
||||||
|
@ -161,14 +161,16 @@ int main(int argc, char *argv[])
|
|||||||
QObject::connect(w->messengerWindow,SIGNAL(startChat(QTreeWidgetItem* )),w->peersDialog,SLOT(chatfriend(QTreeWidgetItem* ))) ;
|
QObject::connect(w->messengerWindow,SIGNAL(startChat(QTreeWidgetItem* )),w->peersDialog,SLOT(chatfriend(QTreeWidgetItem* ))) ;
|
||||||
QObject::connect(w->idle, SIGNAL(secondsIdle(int)), w->messengerWindow, SLOT(checkAndSetIdle(int)));
|
QObject::connect(w->idle, SIGNAL(secondsIdle(int)), w->messengerWindow, SLOT(checkAndSetIdle(int)));
|
||||||
|
|
||||||
|
{
|
||||||
/* only show window, if not startMinimized */
|
/* only show window, if not startMinimized */
|
||||||
RshareSettings *_settings = new RshareSettings();
|
RshareSettings _settings;
|
||||||
|
|
||||||
if(!_settings->value(QString::fromUtf8("StartMinimized"), false).toBool())
|
if(!_settings.value(QString::fromUtf8("StartMinimized"), false).toBool())
|
||||||
{
|
{
|
||||||
|
|
||||||
w->show();
|
w->show();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Startup a Timer to keep the gui's updated */
|
/* Startup a Timer to keep the gui's updated */
|
||||||
QTimer *timer = new QTimer(w);
|
QTimer *timer = new QTimer(w);
|
||||||
|
Loading…
Reference in New Issue
Block a user