mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
src/gui/opkg_manager.cpp fix esource leak; supplement to 4bdacf39c8
This commit is contained in:
@@ -674,9 +674,10 @@ string COPKGManager::getPkgDescription(std::string pkgName, std::string pkgDesc)
|
||||
fseek(fd, 0, SEEK_END);
|
||||
fgetpos(fd, &fz);
|
||||
fseek(fd, 0, SEEK_SET);
|
||||
if (fz.__pos == 0)
|
||||
if (fz.__pos == 0){
|
||||
fclose(fd);
|
||||
return pkgDesc;
|
||||
|
||||
}
|
||||
char buf[512];
|
||||
string package, version, description;
|
||||
while (fgets(buf, sizeof(buf), fd)) {
|
||||
|
@@ -1817,7 +1817,7 @@ int CTimerList::newTimer()
|
||||
bool CTimerList::askUserOnRemoteTimerConflict(time_t announceTime, time_t stopTime, char * remotebox_name)
|
||||
{
|
||||
CTimerd::TimerList overlappingTimers;
|
||||
int pre,post;
|
||||
int pre = 0,post = 0;
|
||||
Timer->getRecordingSafety(pre,post);
|
||||
|
||||
for (CTimerd::TimerList::iterator it = timerlist.begin(); it != timerlist.end();++it)
|
||||
|
Reference in New Issue
Block a user