From 0134720621acae640f17f0252e4b8c4d9a8465fb Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Sun, 18 May 2014 21:31:44 +0200 Subject: [PATCH] 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 --- WINGs/wtext.c | 1 + 1 file changed, 1 insertion(+) diff --git a/WINGs/wtext.c b/WINGs/wtext.c index 86418407..b57b6b38 100644 --- a/WINGs/wtext.c +++ b/WINGs/wtext.c @@ -3026,6 +3026,7 @@ WMText *WMCreateTextForDocumentType(WMWidget * parent, WMAction * parser, WMActi WMAddToArray(types, "application/X-color"); WMAddToArray(types, "application/X-image"); WMRegisterViewForDraggedTypes(tPtr->view, types); + WMFreeArray(types); } /*WMAddNotificationObserver(fontChanged, tPtr,