[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [25314] trunk/blender/source/blender/ windowmanager/intern/wm_window.c: Fix small mem leak in wm_window_get_size_ghost
Damien Plisson
damien.plisson at yahoo.fr
Fri Dec 11 15:25:38 CET 2009
Revision: 25314
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25314
Author: damien78
Date: 2009-12-11 15:25:37 +0100 (Fri, 11 Dec 2009)
Log Message:
-----------
Fix small mem leak in wm_window_get_size_ghost
Modified Paths:
--------------
trunk/blender/source/blender/windowmanager/intern/wm_window.c
Modified: trunk/blender/source/blender/windowmanager/intern/wm_window.c
===================================================================
--- trunk/blender/source/blender/windowmanager/intern/wm_window.c 2009-12-11 14:16:59 UTC (rev 25313)
+++ trunk/blender/source/blender/windowmanager/intern/wm_window.c 2009-12-11 14:25:37 UTC (rev 25314)
@@ -944,6 +944,8 @@
GHOST_RectangleHandle bounds= GHOST_GetClientBounds(win->ghostwin);
*width_r= GHOST_GetWidthRectangle(bounds);
*height_r= GHOST_GetHeightRectangle(bounds);
+
+ GHOST_DisposeRectangle(bounds);
}
void wm_window_set_size(wmWindow *win, int width, int height)
More information about the Bf-blender-cvs
mailing list