提交 0c3f34c3 编写于 作者: P prr

8179536: Cleaner print job handling

Reviewed-by: serb, mschoene, rhalade
上级 0a611857
......@@ -508,14 +508,14 @@ jobjectArray getAllDCNames(JNIEnv *env, jobject peer, jstring printer,
names = env->NewObjectArray(cReturned, cls, NULL);
}
if (names == NULL || cls == NULL) {
delete buf;
delete[] buf;
return names;
}
for (int i = 0; i < cReturned; i++) {
utf_str = JNU_NewStringPlatform(env, buf+(buf_len*i));
if (utf_str == NULL) {
delete buf;
delete[] buf;
return names;
}
env->SetObjectArrayElement(names, i, utf_str);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册