Fixed potential memory leak :-(
This commit is contained in:
parent
7fbd206742
commit
5225520669
@ -228,7 +228,10 @@ public:
|
|||||||
}
|
}
|
||||||
int contains(T value)
|
int contains(T value)
|
||||||
{
|
{
|
||||||
return contains(new T(value));
|
T *obj = new T(value);
|
||||||
|
int result = contains(obj);
|
||||||
|
delete obj;
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
unsigned int count()
|
unsigned int count()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user