From: Rajeev Ranjan Date: Mon, 6 May 2013 11:57:21 +0000 (+0530) Subject: [remix_stream] Memory Leak fix related to channel destroy X-Git-Tag: 2.2.1_release~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c9576de8367af841688863003340a8a7daadaacc;p=external%2Flibremix.git [remix_stream] Memory Leak fix related to channel destroy Change-Id: I730136b310f6a1e9ffbbafa5d5fd494b9de2baf8 --- diff --git a/src/libremix/remix_stream.c b/src/libremix/remix_stream.c index eab7b82..2ff9d22 100644 --- a/src/libremix/remix_stream.c +++ b/src/libremix/remix_stream.c @@ -155,7 +155,8 @@ remix_stream_destroy (RemixEnv * env, RemixBase * base) return -1; } - cd_set_destroy_with (env, stream->channels, (CDDestroyFunc)remix_destroy); + // RemixChannel doesnot inherit RemixBase, so register its own destructor explicitly. + cd_set_destroy_with (env, stream->channels, (CDDestroyFunc)remix_channel_destroy); remix_free (stream); return 0;