summaryrefslogtreecommitdiff
path: root/src/xrdb.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1993-06-22 03:44:28 +0000
committerJim Blandy <jimb@redhat.com>1993-06-22 03:44:28 +0000
commitfdce0b3948b9e212a9af63c4c8587fcad44fda30 (patch)
treeb9d9044177b73b79714fbe173ec4344476c39e39 /src/xrdb.c
parent3e03d7c74e90f74bd0f994059a0173bd12232a08 (diff)
downloademacs-fdce0b3948b9e212a9af63c4c8587fcad44fda30.tar.gz
* xrdb.c (get_user_db): Remember to free the screen-local resource
string after we've merged its data into db.
Diffstat (limited to 'src/xrdb.c')
-rw-r--r--src/xrdb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xrdb.c b/src/xrdb.c
index 6a769e3aa6c..f7825a4a60f 100644
--- a/src/xrdb.c
+++ b/src/xrdb.c
@@ -319,7 +319,10 @@ get_user_db (display)
/* Get the screen-specific resources too. */
xdefs = XScreenResourceString (DefaultScreenOfDisplay (display));
if (xdefs != NULL)
- XrmMergeDatabases (XrmGetStringDatabase (xdefs), &db);
+ {
+ XrmMergeDatabases (XrmGetStringDatabase (xdefs), &db);
+ XFree (xdefs);
+ }
#endif
#endif