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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user