mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Fix memory leak in TImer class.
This is not really important since the class is currently not used. This is coverity issue 23291.
This commit is contained in:
parent
eb4f963eef
commit
3db4b23b3f
@ -158,6 +158,12 @@ Timer::Timer() : d(new Private)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Timer::~Timer()
|
||||||
|
{
|
||||||
|
delete d;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void Timer::restart()
|
void Timer::restart()
|
||||||
{
|
{
|
||||||
time(&d->start_time);
|
time(&d->start_time);
|
||||||
|
@ -68,8 +68,11 @@ private:
|
|||||||
class Timer
|
class Timer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
///
|
||||||
Timer();
|
Timer();
|
||||||
///
|
///
|
||||||
|
~Timer();
|
||||||
|
///
|
||||||
void restart();
|
void restart();
|
||||||
///
|
///
|
||||||
int elapsed() const;
|
int elapsed() const;
|
||||||
|
Loading…
Reference in New Issue
Block a user