diff --git a/include/shared_object.h b/include/shared_object.h index f39cb0e8bfc..fe7a3d8e06d 100644 --- a/include/shared_object.h +++ b/include/shared_object.h @@ -61,7 +61,7 @@ class sharedObject if ( deleteObject ) { - delete object; + object->deleteLater(); } }