summaryrefslogtreecommitdiff
path: root/src/lib/elput/elput_evdev.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-02-07 12:00:15 -0500
committerChris Michael <cp.michael@samsung.com>2017-02-07 12:00:15 -0500
commit60859b4789b2b2445b066faa7637a0a14810675a (patch)
treedf855bd3463a47a7dafc67d3d463b4a08a7c8e7d /src/lib/elput/elput_evdev.c
parent6bd8313f02ba05b49ecf67a2297393ee7829a5ab (diff)
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 <cp.michael@samsung.com>
Diffstat (limited to '')
-rw-r--r--src/lib/elput/elput_evdev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elput/elput_evdev.c b/src/lib/elput/elput_evdev.c
index daa4673e91..a83ebc10de 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)
1303 return edev; 1303 return edev;
1304 1304
1305err: 1305err:
1306 eina_stringshare_del(edev->output_name);
1306 free(edev); 1307 free(edev);
1307 return NULL; 1308 return NULL;
1308} 1309}