[haiku-commits] Re: r36112 - haiku/trunk/src/add-ons/print/transports/ipp

Am 10.04.2010 um 19:03 schrieb Jérôme Duval:

> Hi Ithamar,
> 
> 2010/4/10  <ithamar.adema@xxxxxxxxxxxxxxxx>:
> 
>> +IPPPrinterRoster::~IPPPrinterRoster()
>> +{
>> +       if (fEndpt)
>> +               delete fEndpt;
>> +}
> 
> It might be a good idea to ask the IPPListener thread to quit before
> deleting the endpoint.

delete works for NULL pointers too, so the if statement is not needed.

Regards,
Michael


Other related posts: