Here is a solution that works.
If you see any issue with it, please answer that ticket.
In administrator/components/com_adsmanager/tables/contents.php, line 268, just after that block :
foreach($this->data['images'] as $i => $img) {
if (in_array($img->index,$deleted_images)) {
if(is_file(JPATH_IMAGES_FOLDER."/waiting/".$img->image)) {
JFile::delete(JPATH_IMAGES_FOLDER."/waiting/".$img->image);
}
if(is_file(JPATH_IMAGES_FOLDER."/waiting/".$img->thumbnail)) {
JFile::delete(JPATH_IMAGES_FOLDER."/waiting/".$img->thumbnail);
}
if(is_file(JPATH_IMAGES_FOLDER."/waiting/".$img->medium)) {
@JFile::delete(JPATH_IMAGES_FOLDER."/waiting/".$img->medium);
}
unset($this->data['images'][$i]);
}
}
Add the following code :
$contentImages = json_decode($this->images);
foreach($contentImages as $i => $img) {
if (in_array($img->index,$deleted_images)) {
if(is_file(JPATH_IMAGES_FOLDER."/waiting/".$img->image)) {
JFile::delete(JPATH_IMAGES_FOLDER."/waiting/".$img->image);
}
if(is_file(JPATH_IMAGES_FOLDER."/waiting/".$img->thumbnail)) {
JFile::delete(JPATH_IMAGES_FOLDER."/waiting/".$img->thumbnail);
}
if(is_file(JPATH_IMAGES_FOLDER."/waiting/".$img->medium)) {
@JFile::delete(JPATH_IMAGES_FOLDER."/waiting/".$img->medium);
}
unset($contentImages[$i]);
}
}
$this->images = json_encode($contentImages);
Best regards.