]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix leak of toplevel data
authorPo Lu <luangruo@yahoo.com>
Sat, 4 Jun 2022 02:05:44 +0000 (10:05 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 4 Jun 2022 02:05:44 +0000 (10:05 +0800)
* src/xterm.c (x_dnd_compute_toplevels): Make sure to free
`data'.

src/xterm.c

index 99aa0ae9290a62f6fe9903f49e956db4871fcdc1..d5f45fbc94309f3842e2e429998739d77a1bd572 100644 (file)
@@ -2961,6 +2961,9 @@ x_dnd_compute_toplevels (struct x_display_info *dpyinfo)
   SAFE_FREE ();
 #endif
 
+  if (data)
+    XFree (data);
+
   return 0;
 }