dia r4266 - in trunk: . lib plug-ins/svg plug-ins/xslt
- From: hans svn gnome org
- To: svn-commits-list gnome org
- Subject: dia r4266 - in trunk: . lib plug-ins/svg plug-ins/xslt
- Date: Sat, 7 Feb 2009 14:06:30 +0000 (UTC)
Author: hans
Date: Sat Feb 7 14:06:30 2009
New Revision: 4266
URL: http://svn.gnome.org/viewvc/dia?rev=4266&view=rev
Log:
2009-02-07 Hans Breuer <hans breuer org>
[two less leaks - thanks valgrind]
* lib/dia_image.c : free filename
* plug-ins/svg/svg-import.c(read_poly_svg) : free points
* plug-ins/xslt/xsltdialog.c : add #undef GTK_DISABLE_DEPRECATED to
fix bug #570850 - should be ported some day
Modified:
trunk/ChangeLog
trunk/lib/dia_image.c
trunk/plug-ins/svg/svg-import.c
trunk/plug-ins/xslt/xsltdialog.c
Modified: trunk/lib/dia_image.c
==============================================================================
--- trunk/lib/dia_image.c (original)
+++ trunk/lib/dia_image.c Sat Feb 7 14:06:30 2009
@@ -102,6 +102,8 @@
if (image->image)
gdk_pixbuf_unref (image->image);
image->image = NULL;
+ g_free (image->filename);
+ image->filename = NULL;
}
gboolean _dia_image_initialized = FALSE;
Modified: trunk/plug-ins/svg/svg-import.c
==============================================================================
--- trunk/plug-ins/svg/svg-import.c (original)
+++ trunk/plug-ins/svg/svg-import.c Sat Feb 7 14:06:30 2009
@@ -459,6 +459,7 @@
reset_arrows (new_obj);
apply_style(new_obj, node, parent_style);
list = g_list_append (list, new_obj);
+ g_free(points);
g_free(pcd);
return list;
Modified: trunk/plug-ins/xslt/xsltdialog.c
==============================================================================
--- trunk/plug-ins/xslt/xsltdialog.c (original)
+++ trunk/plug-ins/xslt/xsltdialog.c Sat Feb 7 14:06:30 2009
@@ -26,6 +26,7 @@
* Opens a dialog for export options
*/
+#undef GTK_DISABLE_DEPRECATED /* gtk_signal_connect, GTK_OPTION_MENU, ... */
#include "xslt.h"
#include <stdio.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]