Signed-off-by: Peter Hutterer <[email protected]>
---
libwacom/libwacom.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/libwacom/libwacom.c b/libwacom/libwacom.c
index 9671493..fb346e9 100644
--- a/libwacom/libwacom.c
+++ b/libwacom/libwacom.c
@@ -368,6 +368,7 @@ static gboolean
libwacom_same_layouts (const WacomDevice *a, const WacomDevice *b)
{
gchar *file1, *file2;
+ gboolean rc;
/* Conveniently handle the null case */
if (a->layout == b->layout)
@@ -380,7 +381,12 @@ libwacom_same_layouts (const WacomDevice *a, const
WacomDevice *b)
if (b->layout != NULL)
file2 = g_path_get_basename (b->layout);
- return (g_strcmp0 (file1, file2) == 0);
+ rc = (g_strcmp0 (file1, file2) == 0);
+
+ g_free (file1);
+ g_free (file2);
+
+ return rc;
}
int
--
2.1.0
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel