Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/udisksbasejob.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ struct _UDisksBaseJobPrivate
gboolean auto_estimate;
gulong notify_progress_signal_handler_id;

Sample *samples;
Sample samples[MAX_SAMPLES];
guint num_samples;
};

Expand All @@ -77,8 +77,6 @@ udisks_base_job_finalize (GObject *object)
UDisksBaseJob *job = UDISKS_BASE_JOB (object);


g_free (job->priv->samples);

if (job->priv->cancellable != NULL)
{
g_object_unref (job->priv->cancellable);
Expand Down Expand Up @@ -541,8 +539,6 @@ udisks_base_job_set_auto_estimate (UDisksBaseJob *job,

if (value)
{
if (job->priv->samples == NULL)
job->priv->samples = g_new0 (Sample, MAX_SAMPLES);
g_assert_cmpint (job->priv->notify_progress_signal_handler_id, ==, 0);
job->priv->notify_progress_signal_handler_id = g_signal_connect (job,
"notify::progress",
Expand Down