mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +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()
|
||||
{
|
||||
time(&d->start_time);
|
||||
|
@ -68,8 +68,11 @@ private:
|
||||
class Timer
|
||||
{
|
||||
public:
|
||||
///
|
||||
Timer();
|
||||
///
|
||||
~Timer();
|
||||
///
|
||||
void restart();
|
||||
///
|
||||
int elapsed() const;
|
||||
|
Loading…
Reference in New Issue
Block a user