dtfile/SharedProcs.c: coverity CID 89068; use after free
This commit is contained in:
@@ -790,6 +790,7 @@ _DtCheckAndFreePixmapData(
|
||||
|
||||
|
||||
DtDtsFreeAttributeValue(pixmapData->instanceIconName);
|
||||
pixmapData->instanceIconName = NULL;
|
||||
|
||||
if (iconGadget->icon.pixmap == 0 ||
|
||||
iconGadget->icon.pixmap_width == 0 ||
|
||||
@@ -828,11 +829,13 @@ _DtCheckAndFreePixmapData(
|
||||
XtSetValues((Widget) iconGadget, args, 1);
|
||||
|
||||
DtDtsFreeAttributeValue(pixmapData->iconName);
|
||||
pixmapData->iconName = NULL;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
DtDtsFreeAttributeValue(pixmapData->iconName);
|
||||
pixmapData->iconName = NULL;
|
||||
}
|
||||
|
||||
DtDtsFreeAttributeValue(pixmapData->hostPrefix);
|
||||
|
||||
Reference in New Issue
Block a user