Stamp info: Use dedicated function to free up memory

This way it's more flexible to extend StampData structure
with additional stuff which might require memory free.
This commit is contained in:
2017-02-06 16:54:41 +01:00
parent 7fb393f9ba
commit a6d2fd0215
3 changed files with 11 additions and 2 deletions

View File

@@ -116,8 +116,8 @@ void render_result_free(RenderResult *res)
MEM_freeN(res->text);
if (res->error)
MEM_freeN(res->error);
if (res->stamp_data)
MEM_freeN(res->stamp_data);
BKE_stamp_data_free(res->stamp_data);
MEM_freeN(res);
}