Thread
:
C++ and MAME
View Single Post
08-08-2014, 08:08 PM
#
6
Regular Poster
Donor
4,154 posts
View Stats
Seahawk
Re: C++ and MAME
You should check that p2 is not a null pointer after the call to malloc. If the call to malloc fails then p2 is assigned null and the function returns it, causing newbuff to be null as well. The pointer p is also lost.
Seahawk
View Public Profile
Send a private message to Seahawk
Find More Posts by Seahawk