tag:blogger.com,1999:blog-21339754.post113909440183367533..comments2023-10-26T06:15:51.387-07:00Comments on Load Code: Object Oriented programming in CAdam Smithhttp://www.blogger.com/profile/05862497628924727350noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-21339754.post-25860019848405001052009-09-24T19:11:45.263-07:002009-09-24T19:11:45.263-07:00I know it's been a long time since this was po...I know it's been a long time since this was posted, but there are a couple issues I have with this page.<br /><br />First, the formatting needs fixing.<br /><br />Second, and significantly more important, is that every call to "malloc" *must* have a matching call to "free"! To take from C++ nomenclature, you have a "constructor", where is your "destructor"? Massive memory leaks are going to occur if people create hundreds of buttons using this.Anonymoushttps://www.blogger.com/profile/00563842023935568118noreply@blogger.com