Cleaning up Serial Print to LCDs

One of my final obsticles for my project is cleaning up my code and encapsulating all the serial prints to the LCD so that if i were to change it out for another LCD, minimal modification is required.

i.e. the right way to do it.

I have tried this and im not getting any errors on the compile but the arduino is locking up in random places. well, random meaning during the print function but just a different ones. I have different Print functions handling strings and ints. I reset my code back old but here were my functions i used, that wokred most of the time......

void CLSSendString(String Message){ CLS(); mySerial.print(Message); }    //Clear screen then send message to LCD
void SendString(String Message){ mySerial.print(Message); }              //Send message to LCD
void CLSSendint(int Integer){ CLS(); mySerial.print(Integer); }         //Clear screen adn send integer to the LCD
void Sendint(int Integer){ mySerial.print(Integer); }                //Send integer to the LCD   
void CLS(){ mySerial.print("?f"); }                                         //Clear screen
void Line1(){ mySerial.print("?x00?y0"); }                               //Move cursor to line 1
void Line2(){ mySerial.print("?x00?y1"); }                               //Move cursor to Line 2

Any obvious mistakes here? Are there some basic guidelines to follow here? Seems simple enough...I think actually the int wouldn't print along with the lockup issue. I try to clean up the code and i start to break it............

Did you patch the memory leak in the string library?

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1241618944/11

Amazing!

Thats seems to be exactly this issue. I'll add it when i get home.

Thanks again

Update:

I added the line to free the array in the .h file and it fixed the problem. yippee.

My failsauce coding skills alone bring upon enough errors, now i have to worry about .lib issues........

FYI: I did see that the person who needs to know about this error knows, but for an update I did just redownload this library and the .h file has not bet corrected yet.