[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [58630] branches/soc-2013-ui_replay/source /blender: Wasn't cleaning up after myself properly.
Vincent Akkermans
vincent at ack-err.net
Fri Jul 26 18:50:51 CEST 2013
Revision: 58630
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=58630
Author: ack-err
Date: 2013-07-26 16:50:50 +0000 (Fri, 26 Jul 2013)
Log Message:
-----------
Wasn't cleaning up after myself properly. This fixes memory leaks.
There's still a memory leak that I have to look at more closely:
Error: Not freed memory blocks: 2
Data from SCR len: 336 0x10d8b54b8
Data from SCR len: 272 0x10d8b5648
Modified Paths:
--------------
branches/soc-2013-ui_replay/source/blender/editors/interface/interface_panel.c
branches/soc-2013-ui_replay/source/blender/windowmanager/intern/wm_operators.c
Modified: branches/soc-2013-ui_replay/source/blender/editors/interface/interface_panel.c
===================================================================
--- branches/soc-2013-ui_replay/source/blender/editors/interface/interface_panel.c 2013-07-26 16:19:26 UTC (rev 58629)
+++ branches/soc-2013-ui_replay/source/blender/editors/interface/interface_panel.c 2013-07-26 16:50:50 UTC (rev 58630)
@@ -1191,6 +1191,8 @@
RNA_string_set(&props_ptr, "panel_name", block->panel->type->idname);
WM_operator_name_call(C, "WM_OT_panel_popup", WM_OP_INVOKE_DEFAULT, &props_ptr);
+
+ WM_operator_properties_free(&props_ptr);
break;
case 4:
default:
Modified: branches/soc-2013-ui_replay/source/blender/windowmanager/intern/wm_operators.c
===================================================================
--- branches/soc-2013-ui_replay/source/blender/windowmanager/intern/wm_operators.c 2013-07-26 16:19:26 UTC (rev 58629)
+++ branches/soc-2013-ui_replay/source/blender/windowmanager/intern/wm_operators.c 2013-07-26 16:50:50 UTC (rev 58630)
@@ -4207,6 +4207,9 @@
yco -= 2 * style->panelspace;
uiEndPanel(block, w, 0);
+
+ uiBlockSetPanel(block, NULL);
+ MEM_freeN(pa);
}
uiPopupBoundsBlock(block, 6, 0, -UI_UNIT_Y); /* move it downwards, mouse over button */
More information about the Bf-blender-cvs
mailing list