[GB.GTK]
* BUG: Fix a memory leak that leads to a crash in the TextArea.Paste() method. git-svn-id: svn://localhost/gambas/trunk@3409 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
adf553d56b
commit
a4056f9d53
2 changed files with 0 additions and 13 deletions
1
TODO
1
TODO
|
@ -23,7 +23,6 @@ INTERPRETER
|
||||||
- MOD with floats.
|
- MOD with floats.
|
||||||
- Make the error information associated with the current stack frame.
|
- Make the error information associated with the current stack frame.
|
||||||
- Timer.TimeLeft.
|
- Timer.TimeLeft.
|
||||||
- NOT LIKE, NOT BEGINS and NOT ENDS.
|
|
||||||
- OPEN ... LOCK. True lock while reading/writing a file.
|
- OPEN ... LOCK. True lock while reading/writing a file.
|
||||||
|
|
||||||
DEVELOPMENT ENVIRONMENT
|
DEVELOPMENT ENVIRONMENT
|
||||||
|
|
|
@ -279,11 +279,7 @@ void gTextArea::paste()
|
||||||
|
|
||||||
txt = gClipboard::getText();
|
txt = gClipboard::getText();
|
||||||
if (txt)
|
if (txt)
|
||||||
{
|
|
||||||
gtk_text_buffer_insert_at_cursor(buf,(const gchar *)txt,-1);
|
gtk_text_buffer_insert_at_cursor(buf,(const gchar *)txt,-1);
|
||||||
g_free(txt);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void gTextArea::insert(const char *txt)
|
void gTextArea::insert(const char *txt)
|
||||||
|
@ -471,11 +467,3 @@ int gTextArea::textHeight()
|
||||||
waitForLayout(&w, &h);
|
waitForLayout(&w, &h);
|
||||||
return h;
|
return h;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue