Thread: [Vimprobable-users] [PATCH] Another missd g_free
Vimprobable is a lean web browser optimised for full keyboard control
Brought to you by:
hanness
From: Daniel C. <dan...@gm...> - 2013-01-27 17:00:22
Attachments:
signature.asc
gfree.patch
|
Hi! There was already a missed g_free(). Daniel |
From: Hannes S. <ha...@yl...> - 2013-01-27 17:15:38
|
Daniel Carl <dan...@gm...> wrote: > There was already a missed g_free(). Thanks, going into the next release! Hannes |
From: Daniel C. <dan...@gm...> - 2013-02-02 20:22:58
|
Hi! Following patches structures nearly all global variables into some structs that are put together in a single client instance. I know that is a large change, but it's better to read and to maintain (at least for me). Daniel Carl (2): Added structs to move global variables out of the way. Use the BUF_SIZE constant for the rememberedURL too. config.h | 11 +- main.c | 659 ++++++++++++++++++++++++++++----------------------------- main.h | 60 ++++++ utilities.c | 45 ++-- utilities.h | 2 +- vimprobable.h | 8 +- 6 files changed, 420 insertions(+), 365 deletions(-) |
From: Daniel C. <dan...@gm...> - 2013-02-03 12:17:42
Attachments:
signature.asc
03-atoi.patch
|
Hi! I have removed the possibility to read the winid given by -e option also as a decimal number. This patch readded this part of code, so that vimprobable works also for older version of tabbed or other applications. Daniel |
From: Daniel C. <dan...@gm...> - 2013-02-03 12:23:17
Attachments:
signature.asc
03-atoi.patch
|
Oh no! I forgot the debugging code! How can I make souch a mistake within 5 changed lines? I think I should keep my fingers from the code today. Daniel |
From: Hannes S. <ha...@yl...> - 2013-02-03 12:24:57
|
Hi Daniel, Daniel Carl <dan...@gm...> wrote: > Following patches structures nearly all global variables into some > structs that are put together in a single client instance. I know > that is a large change, but it's better to read and to maintain (at > least for me). I think this is a good idea, but as you probably guessed (and noticed, seeing your followup patch), such a major change will also need major testing. I will get to it by using your version for my regular work, but it will take some time to gain overall confidence. Testing by others would be appreciated, too, of course! Hannes |
From: Daniel C. <dan...@gm...> - 2013-02-03 18:25:55
|
Hi Hannes! > I think this is a good idea, but as you probably guessed (and noticed, > seeing your followup patch), such a major change will also need major > testing. I will get to it by using your version for my regular work, > but it will take some time to gain overall confidence. Testing by > others would be appreciated, too, of course! If the refactored code needs major testing, we can also test some more patches too:) Today I spent some time to check vimprobable for memory leaks with valgrind and found some none freed strings in conjunction with the values filled by jsapi_evaluate_script. It isn't easy for me to under stand the code related to the editor feature - which of the variables 'value' or 'message' contains a newly allocated string and when can they be freed. At the moment I've put in some possible missed g_free() calls, but I'm not sure if this was done right. In generals wen should find a way to reduce the number of g_free calls in the open_editor function, if this is possible. During the hunting of memory leaky I found out, that the hint could not be cleaned/removed if the incremental search feature was disabled. This problem is fixed in patch 07-Fixed-wrong-placed-ifdef-ENABLE_INCREMENTAL_SEARCH.patch. Like HP annotated in the code, there are still heavy memory leaks in complete function. But this function is difficult to understand. I think we should split the logic and have a function that build up a list of matching items (for each completion type 'commands', 'settings', 'tags', 'url-history'), and another function to visualize these items to reduce the complexity of this part of code. In the way the complete function is implemented at the moment, I can't see when the memory should be freed and when not. Daniel |
From: Daniel C. <dan...@gm...> - 2013-02-03 19:22:36
|
Hi! I've added to many g_free in the _resume_from_editor function that crashed vimprobable after the editor was closed. Daniel |
From: Daniel C. <dan...@gm...> - 2013-02-22 20:02:11
Attachments:
signature.asc
09-fix-command-history.patch
|
Hi! The heavy restructuring of the code left a bug in the command history saving. Following patch fixes that. Daniel |
From: Daniel C. <dan...@gm...> - 2013-03-18 01:31:40
|
I found some coing issues in the hinting java script. The following two patches fixes them. By the way, the image hintings should not work in the current implementation, because we do a click on the hinted image that will not open the image. We should reads the source of the imagen and give it to the c-layer to open it. At the moment the image hinting works only for those images that where embeded into a a-tag that will be openened because we let the click event bobble up. Daniel |
From: Daniel C. <dan...@gm...> - 2013-02-24 15:14:52
Attachments:
signature.asc
refactor-all.patch
|
Hi Matto Fransen, matto fransen <ma...@ma...> wrote: > Do you have a single patch with all your patches combined? Here is it, hope it applies well. Daniel |
From: Hannes S. <ha...@yl...> - 2013-05-17 12:10:15
|
Merged all patches from this thread |