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>
This commit is contained in:
Chris Michael 2017-02-07 12:00:15 -05:00
parent 6bd8313f02
commit 60859b4789
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}