summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2006-04-07 16:19:02 +0000
committerDaniel Stone <daniel@fooishbar.org>2006-04-07 16:19:02 +0000
commit405ef7f445a41eb9995304b4c68b1c966a16bc20 (patch)
treecd1e37837d239650a6eca0347201fb3dab2b8d09 /src
parentd173f9d6561b223de0bf79603d303427da668a98 (diff)
Coverity #787, 788: Fix memory leaks.
Diffstat (limited to 'src')
-rw-r--r--src/xkbmisc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xkbmisc.c b/src/xkbmisc.c
index 0116b5f..41f1f7f 100644
--- a/src/xkbmisc.c
+++ b/src/xkbmisc.c
@@ -321,7 +321,7 @@ XkbFileInfo finfo;
if (wantNames&XkmTypesMask) {
if (old_names->types!=None) {
tmp= XkbAtomGetString(dpy,old_names->types);
- names->types= _XkbDupString(tmp);
+ names->types= tmp;
}
else {
wantDflts|= XkmTypesMask;
@@ -331,7 +331,7 @@ XkbFileInfo finfo;
if (wantNames&XkmCompatMapMask) {
if (old_names->compat!=None) {
tmp= XkbAtomGetString(dpy,old_names->compat);
- names->compat= _XkbDupString(tmp);
+ names->compat= tmp;
}
else wantDflts|= XkmCompatMapMask;
complete|= XkmCompatMapMask;
@@ -340,13 +340,13 @@ XkbFileInfo finfo;
if (old_names->symbols==None)
return False;
tmp= XkbAtomGetString(dpy,old_names->symbols);
- names->symbols= _XkbDupString(tmp);
+ names->symbols= tmp;
complete|= XkmSymbolsMask;
}
if (wantNames&XkmKeyNamesMask) {
if (old_names->keycodes!=None) {
tmp= XkbAtomGetString(dpy,old_names->keycodes);
- names->keycodes= _XkbDupString(tmp);
+ names->keycodes= tmp;
}
else wantDflts|= XkmKeyNamesMask;
complete|= XkmKeyNamesMask;
@@ -355,7 +355,7 @@ XkbFileInfo finfo;
if (old_names->geometry==None)
return False;
tmp= XkbAtomGetString(dpy,old_names->geometry);
- names->geometry= _XkbDupString(tmp);
+ names->geometry= tmp;
complete|= XkmGeometryMask;
wantNames&= ~XkmGeometryMask;
}