summaryrefslogtreecommitdiff
path: root/hw/dmx
diff options
context:
space:
mode:
authorDavid Reveman <davidr@novell.com>2008-09-15 10:36:40 -0400
committerDavid Reveman <davidr@novell.com>2008-10-30 03:37:41 -0400
commitcf71079e2a60f129887ef80956cd2fc0be310c86 (patch)
tree7d05ac43bd0b1f1422f63bef9019bb934d5919f9 /hw/dmx
parent3e83fa21880cd0af08b734620cfb6426cc8556d2 (diff)
Fix early freeing of ext.
Diffstat (limited to 'hw/dmx')
-rw-r--r--hw/dmx/dmxinput.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/dmx/dmxinput.c b/hw/dmx/dmxinput.c
index ab1be816b..3a789261f 100644
--- a/hw/dmx/dmxinput.c
+++ b/hw/dmx/dmxinput.c
@@ -1343,8 +1343,6 @@ dmxInputAddExtensionDevices (DMXInputInfo *dmxInput)
return FALSE;
}
- XFree (ext);
-
XQueryExtension (dmxScreen->beDisplay,
INAME,
&i,
@@ -1355,6 +1353,8 @@ dmxInputAddExtensionDevices (DMXInputInfo *dmxInput)
dmxScreen->name, INAME,
ext->major_version, ext->minor_version);
+ XFree (ext);
+
devices = XListInputDevices (dmxScreen->beDisplay, &num);
if (devices)
{