SIGSERV termination on return statement
Aurelian Melinte
ame01@gmx.net
Tue Oct 9 23:32:00 GMT 2012
On 09/10/2012 5:48 PM, Arthur Schwarz wrote:
> SlipCell& SlipSublist::replace(SlipCell& X) { // Replace a cell
> on a list with a new cell
> SlipCell& cell = *this;
> if (X.isData()) {
> cell = assignData(X); // failure before return to this statement from
> method
> *** delete this;
> } else {
> *this = X;
> }
> *** return cell;
> }; // SlipCell& SlipSublist::replace(SlipCell& X)
>
Are you returning from a deleted object then using it afterward?
Regards,
Aurelian
More information about the Gdb
mailing list