diff audacious/ui_fileinfo.c @ 1611:694d3edcd208 trunk

[svn] - fix for memory leak.
author yaz
date Wed, 30 Aug 2006 02:44:09 -0700
parents ce3ce44d6814
children 77baac5f7439
line wrap: on
line diff
--- a/audacious/ui_fileinfo.c	Wed Aug 30 02:37:40 2006 -0700
+++ b/audacious/ui_fileinfo.c	Wed Aug 30 02:44:09 2006 -0700
@@ -425,6 +425,7 @@
 				/* We found a suitable file in the current
 				 * directory, use that. The string will be
 				 * freed by the caller */
+				g_dir_close(d);
 				return newpath;
 			}
 			else
@@ -441,6 +442,7 @@
 					if(tmp)
 					{
 						g_free(newpath);
+						g_dir_close(d);
 						return tmp;
 					}
 				}