[haiku-commits] Re: r36112 - haiku/trunk/src/add-ons/print/transports/ipp
- From: Michael Pfeiffer <michael.w.pfeiffer@xxxxxxxxx>
- To: haiku-commits@xxxxxxxxxxxxx
- Date: Sat, 10 Apr 2010 19:34:28 +0200
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: