[Digikam-devel] Crash while deleting tag in ImageDescEditTab

Marcel Wiesweg marcel.wiesweg at gmx.de
Thu Feb 4 20:06:41 GMT 2010


> Digikam::AbstractAlbumTreeView::contextMenuEvent (this=0x28d4800,
> event=0x7fff8ea70440) at
> /home/languitar/workspace/digiKam/digikam/albumtreeview.cpp:716
> 
> The reason for this is that the tag is already deleted by the
> TagModificationHelper so the pointer in the dynamic cast points to
> invalid memory.
> 
> Does using AlbumPointer in for the whole context menu handling help to
> resolve this?

Perhaps it's easier to do the check once in 
AbstractAlbumTreeView::contextMenuEvent, between 715 and 716. Using 
AlbumPointer there, or some other check. The model will be updated in line 716 
already.



More information about the Digikam-devel mailing list