Skip to content

Commit

Permalink
minor fix of memleak
Browse files Browse the repository at this point in the history
  • Loading branch information
gozfree committed Dec 26, 2020
1 parent 61b0943 commit 0dc76df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gear-lib/libmedia-io/libmedia-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ struct media_packet *media_packet_copy(const struct media_packet *src)
printf("unsupport copy %d media packet\n", src->type);
break;
}
if (dst)
dst->type = src->type;
return dst;
}

Expand Down
1 change: 1 addition & 0 deletions gear-lib/libuac/pulseaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,7 @@ static void uac_pa_close(struct uac_ctx *uac)

pa_threaded_mainloop_stop(c->pa_mainloop);
pa_threaded_mainloop_free(c->pa_mainloop);
free(uac->conf.device);
free(c);
}

Expand Down

0 comments on commit 0dc76df

Please sign in to comment.