Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GIMP
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2,677
Issues
2,677
List
Boards
Labels
Service Desk
Milestones
Merge Requests
35
Merge Requests
35
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
GIMP
Commits
ce3db28f
Commit
ce3db28f
authored
Aug 17, 2011
by
Nelson A. de Oliveira
Committed by
Kevin Cozens
Aug 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some memleaks
parent
c0208e70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
plug-ins/common/guillotine.c
plug-ins/common/guillotine.c
+2
-0
plug-ins/file-psd/psd-util.c
plug-ins/file-psd/psd-util.c
+4
-0
No files found.
plug-ins/common/guillotine.c
View file @
ce3db28f
...
...
@@ -242,6 +242,8 @@ guillotine (gint32 image_ID,
if
(
new_image
==
-
1
)
{
g_warning
(
"Couldn't create new image."
);
g_free
(
hformat
);
g_free
(
format
);
return
images
;
}
...
...
plug-ins/file-psd/psd-util.c
View file @
ce3db28f
...
...
@@ -115,6 +115,7 @@ fread_pascal_string (gint32 *bytes_read,
if
(
fseek
(
f
,
1
,
SEEK_CUR
)
<
0
)
{
psd_set_error
(
feof
(
f
),
errno
,
error
);
g_free
(
str
);
return
NULL
;
}
(
*
bytes_read
)
++
;
...
...
@@ -174,12 +175,14 @@ fwrite_pascal_string (const gchar *src,
||
fwrite
(
pascal_str
,
pascal_len
,
1
,
f
)
<
1
)
{
psd_set_error
(
feof
(
f
),
errno
,
error
);
g_free
(
pascal_str
);
return
-
1
;
}
bytes_written
++
;
bytes_written
+=
pascal_len
;
IFDBG
(
2
)
g_debug
(
"Pascal string: %s, bytes_written: %d"
,
pascal_str
,
bytes_written
);
g_free
(
pascal_str
);
}
/* Pad with nulls */
...
...
@@ -263,6 +266,7 @@ fread_unicode_string (gint32 *bytes_read,
if
(
fseek
(
f
,
1
,
SEEK_CUR
)
<
0
)
{
psd_set_error
(
feof
(
f
),
errno
,
error
);
g_free
(
utf16_str
);
return
NULL
;
}
(
*
bytes_read
)
++
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment