Skip to content

Commit

Permalink
[mms_task_encode] Fixed a bug on error path
Browse files Browse the repository at this point in the history
  • Loading branch information
monich committed Mar 5, 2014
1 parent 7fbc026 commit 80583a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mms-lib/src/mms_task_encode.c
Expand Up @@ -473,7 +473,7 @@ mms_task_encode_prepare_attachments(
if (smil_index >= 0) {
return array;
} else {
for (i=0; i<nparts; i++) {
for (i=0; i<array->len; i++) {
mms_attachment_unref(array->pdata[i]);
}
g_ptr_array_free(array, TRUE);
Expand Down

0 comments on commit 80583a2

Please sign in to comment.