From 60859b4789b2b2445b066faa7637a0a14810675a Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 7 Feb 2017 12:00:15 -0500 Subject: [PATCH] elput: Delete output_name stringshare on error case This actually should have been part of the previous patch which moved setting output_name to evdev, but it got missed so add it now. This ensures we cleanup the output_name stringshare on error. Signed-off-by: Chris Michael --- src/lib/elput/elput_evdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/elput/elput_evdev.c b/src/lib/elput/elput_evdev.c index daa4673..a83ebc1 100644 --- a/src/lib/elput/elput_evdev.c +++ b/src/lib/elput/elput_evdev.c @@ -1303,6 +1303,7 @@ _evdev_device_create(Elput_Seat *seat, struct libinput_device *device) return edev; err: + eina_stringshare_del(edev->output_name); free(edev); return NULL; } -- 2.7.4