Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
GNOME
GIMP
Commits
69e7e411
Commit
69e7e411
authored
Jun 24, 2010
by
Michael Natterer
😴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: unref options->paint_info in dispose() instead of finalize()
parent
c47edb50
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
app/paint/gimppaintoptions.c
app/paint/gimppaintoptions.c
+15
-2
No files found.
app/paint/gimppaintoptions.c
View file @
69e7e411
...
...
@@ -96,6 +96,7 @@ enum
};
static
void
gimp_paint_options_dispose
(
GObject
*
object
);
static
void
gimp_paint_options_finalize
(
GObject
*
object
);
static
void
gimp_paint_options_set_property
(
GObject
*
object
,
guint
property_id
,
...
...
@@ -120,6 +121,7 @@ gimp_paint_options_class_init (GimpPaintOptionsClass *klass)
{
GObjectClass
*
object_class
=
G_OBJECT_CLASS
(
klass
);
object_class
->
dispose
=
gimp_paint_options_dispose
;
object_class
->
finalize
=
gimp_paint_options_finalize
;
object_class
->
set_property
=
gimp_paint_options_set_property
;
object_class
->
get_property
=
gimp_paint_options_get_property
;
...
...
@@ -243,12 +245,23 @@ gimp_paint_options_init (GimpPaintOptions *options)
}
static
void
gimp_paint_options_
finaliz
e
(
GObject
*
object
)
gimp_paint_options_
dispos
e
(
GObject
*
object
)
{
GimpPaintOptions
*
options
=
GIMP_PAINT_OPTIONS
(
object
);
if
(
options
->
paint_info
)
g_object_unref
(
options
->
paint_info
);
{
g_object_unref
(
options
->
paint_info
);
options
->
paint_info
=
NULL
;
}
G_OBJECT_CLASS
(
parent_class
)
->
dispose
(
object
);
}
static
void
gimp_paint_options_finalize
(
GObject
*
object
)
{
GimpPaintOptions
*
options
=
GIMP_PAINT_OPTIONS
(
object
);
g_slice_free
(
GimpFadeOptions
,
options
->
fade_options
);
g_slice_free
(
GimpJitterOptions
,
options
->
jitter_options
);
...
...
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