summaryrefslogtreecommitdiff
path: root/src/corelib/x11
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2010-09-14 23:02:36 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2010-09-23 16:24:33 +0200
commitf97be77054ec360f41cefb9a0b3193415a0c4b43 (patch)
treee7459c58e7b70f6b40941e2c6badae58b2836cbd /src/corelib/x11
parent95d6327b7c228c83abaa419238c34277def62a07 (diff)
downloadfpGUI-f97be77054ec360f41cefb9a0b3193415a0c4b43.tar.xz
Fixed double free libc crash. We assumed we should always free xdndtypes.
NEVER ASSUME!
Diffstat (limited to 'src/corelib/x11')
-rw-r--r--src/corelib/x11/fpg_x11.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/x11/fpg_x11.pas b/src/corelib/x11/fpg_x11.pas
index 405e4264..a16d0ede 100644
--- a/src/corelib/x11/fpg_x11.pas
+++ b/src/corelib/x11/fpg_x11.pas
@@ -868,7 +868,7 @@ begin
FDNDTypeList.Add(itm);
end;
end;
- if xdndtypes <> nil then
+ if count > 3 then
XFree(xdndtypes);
for i := 0 to FDNDTypeList.Count-1 do