Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

font.cpp内のmallocをnewに置き換える #49

Merged

Conversation

taro-yamada
Copy link
Contributor

現在font.cpp内ではmalloc()によって確保したポインタをdeleteで削除しています。
これは未定義動作になるので、代わりにnewを使うように変更し、同時にmemsetによるゼロフィルをリスト初期化に置き換えます。

また現在g++による警告(type qualifiers ignored on cast result type)が出ているため不要なconstを取り除きます。

現在font.cpp内ではmalloc()によって確保したポインタをdeleteで削除しています。
これは未定義動作になるので、代わりにnewを使うように変更し、同時にmemsetによるゼロフィルをリスト初期化に置き換えます。

また現在g++による警告(type qualifiers ignored on cast result type)が出ているため不要なconstを取り除きます。
@ma8ma ma8ma added the bug バグの追跡 label Mar 8, 2019
@ma8ma ma8ma added this to In progress in State of JDim-v0.1.0+ via automation Mar 8, 2019
@yama-natuki yama-natuki merged commit 2cca69a into JDimproved:master Mar 9, 2019
State of JDim-v0.1.0+ automation moved this from In progress to Done Mar 9, 2019
@yama-natuki
Copy link
Collaborator

ありがとうございます

@taro-yamada taro-yamada deleted the fix_mismatched_malloc_delete branch March 10, 2019 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug バグの追跡
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants