mirror of
https://github.com/love2d/love.git
synced 2026-08-18 03:34:23 +02:00
Reduced the number of explicit retain/release method calls on love objects. Less chance of bugs!
This commit is contained in:
@@ -37,7 +37,6 @@ Decoder::Decoder(Data *data, const std::string &ext, int bufferSize)
|
||||
, buffer(0)
|
||||
, eof(false)
|
||||
{
|
||||
data->retain();
|
||||
buffer = new char[bufferSize];
|
||||
}
|
||||
|
||||
@@ -45,8 +44,6 @@ Decoder::~Decoder()
|
||||
{
|
||||
if (buffer != 0)
|
||||
delete [](char *) buffer;
|
||||
if (data != 0)
|
||||
data->release();
|
||||
}
|
||||
|
||||
void *Decoder::getBuffer() const
|
||||
|
||||
Reference in New Issue
Block a user