Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-Android
Commits
abbc139a
Commit
abbc139a
authored
Jan 20, 2012
by
Rafaël Carré
Browse files
thumbnailer: fix memleak
parent
854d1b33
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlc-android/jni/thumbnailer.c
View file @
abbc139a
...
...
@@ -104,6 +104,7 @@ jbyteArray Java_org_videolan_vlc_android_LibVLC_getThumbnail(JNIEnv *p_env, jobj
if
(
p_sys
==
NULL
)
{
LOGE
(
"Couldn't create the thumbnailer data structure!"
);
(
*
p_env
)
->
ReleaseStringUTFChars
(
p_env
,
filePath
,
psz_filePath
);
return
NULL
;
}
...
...
@@ -225,10 +226,9 @@ jbyteArray Java_org_videolan_vlc_android_LibVLC_getThumbnail(JNIEnv *p_env, jobj
(
jbyte
*
)
p_sys
->
p_thumbnail
);
(
*
p_env
)
->
DeleteLocalRef
(
p_env
,
byteArray
);
(
*
p_env
)
->
ReleaseStringUTFChars
(
p_env
,
filePath
,
psz_filePath
);
end:
/* Free the memory. */
(
*
p_env
)
->
ReleaseStringUTFChars
(
p_env
,
filePath
,
psz_filePath
);
pthread_mutex_destroy
(
&
p_sys
->
doneMutex
);
pthread_cond_destroy
(
&
p_sys
->
doneCondVar
);
free
(
p_sys
->
p_frameData
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment