mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 05:18:06 +01:00
WINGs: fix memory leak in WMCreateTextForDocumentType (Coverity #50118)
As pointed by Coverity, a temporary WMArray was not freed after use. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
d65430137d
commit
0134720621
@@ -3026,6 +3026,7 @@ WMText *WMCreateTextForDocumentType(WMWidget * parent, WMAction * parser, WMActi
|
|||||||
WMAddToArray(types, "application/X-color");
|
WMAddToArray(types, "application/X-color");
|
||||||
WMAddToArray(types, "application/X-image");
|
WMAddToArray(types, "application/X-image");
|
||||||
WMRegisterViewForDraggedTypes(tPtr->view, types);
|
WMRegisterViewForDraggedTypes(tPtr->view, types);
|
||||||
|
WMFreeArray(types);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*WMAddNotificationObserver(fontChanged, tPtr,
|
/*WMAddNotificationObserver(fontChanged, tPtr,
|
||||||
|
|||||||
Reference in New Issue
Block a user