Summary: | [patch] getdata: allow inclusion of other files in a dirfile format file | ||
---|---|---|---|
Product: | [Applications] kst | Reporter: | D. V. Wiebe <dvw> |
Component: | general | Assignee: | kst |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | 1.x | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
Patch to allow getdata INCLUDE capabilities in dirfile format files
Patch to allow getdata INCLUDE capabilities in dirfile format files File descriptor leak patch |
Description
D. V. Wiebe
2005-11-24 01:09:17 UTC
Created attachment 13627 [details]
Patch to allow getdata INCLUDE capabilities in dirfile format files
The descriptor leak fix should definitely go in, but I'd rather leave the feature until after 1.2.0. Is that OK with you guys? We need fewer changes in trunk now... How far away is 1.2.0? Personally, I'm content either way. I'll happily patch this stuff in myself as needed until it gets into TRUNK. Created attachment 13628 [details]
Patch to allow getdata INCLUDE capabilities in dirfile format files
Sorry, I just noticed I uploaded the wrong version of the patch. This is the
correct one.
On Thu, Nov 24, 2005 at 12:30:07AM -0000, George Staikos wrote:
> The descriptor leak fix should definitely go in, but I'd rather leave the
> feature until after 1.2.0. Is that OK with you guys? We need fewer changes
> in trunk now...
I understand not immediatly, but would it be able to go in to something
like 1.2.1? I have a feeling that 1.3.0 is going to be a while off.
> 01:44 ------- How far away is 1.2.0?
Less than a month I hope. We just need to clean up scripting, view objects,
general bugfix, and hopefully get the docs updated.
If you extract the file descriptor leak fix I'll apply it.
> I understand not immediatly, but would it be able to go in to something
> like 1.2.1? I have a feeling that 1.3.0 is going to be a while off.
I think so.
Created attachment 13629 [details] File descriptor leak patch > If you extract the file descriptor leak fix I'll apply it. Here it is. SVN commit 482757 by staikos: Don's patch to fix descriptor leak fix CCBUG: 116981 M +7 -0 getdata.c --- trunk/extragear/graphics/kst/kst/datasources/dirfile/getdata.c #482756:482757 @@ -345,12 +345,14 @@ *error_code = GD_E_FORMAT; FreeF(F); Formats.n--; + fclose(fp); return(NULL); } if (strlen(in_cols[0])>FIELD_LENGTH) { *error_code = GD_E_FIELD; FreeF(F); Formats.n--; + fclose(fp); return(NULL); } if (strcmp(in_cols[1], "RAW")==0) { @@ -398,14 +400,19 @@ FreeF(F); Formats.n--; *error_code = GD_E_FORMAT; + fclose(fp); return(NULL); } if (*error_code!=GD_E_OK) { FreeF(F); Formats.n--; + fclose(fp); return(NULL); } } + + fclose(fp); + /** Now sort the lists */ if (F->n_raw > 1) { for (i=0; i<F->n_raw; i++) { George added these features with svn commit 494718. |