dia r4262 - in trunk: . lib



Author: hans
Date: Fri Feb  6 18:14:45 2009
New Revision: 4262
URL: http://svn.gnome.org/viewvc/dia?rev=4262&view=rev

Log:
2009-02-06  Hans Breuer  <hans breuer org>

	* lib/beziershape.c(beziershape_update_data): remove stray semicolon 
	leading to leaking all connections on num_points change and the attempt
	to free memory which was not allocated; fixes bug #570808.



Modified:
   trunk/ChangeLog
   trunk/lib/beziershape.c

Modified: trunk/lib/beziershape.c
==============================================================================
--- trunk/lib/beziershape.c	(original)
+++ trunk/lib/beziershape.c	Fri Feb  6 18:14:45 2009
@@ -635,7 +635,7 @@
     for (i = 0; i < obj->num_handles; i++)
       g_free(obj->handles[i]);
     g_free(obj->handles);
-    for (i = 0; i < obj->num_connections; i++);
+    for (i = 0; i < obj->num_connections; i++)
       g_free(obj->connections[i]);
     g_free(obj->connections);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]