/gpump/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/gpump/trunk

« back to all changes in this revision

Viewing changes to src/main.c

  • Committer: Gustav Hatvigsson
  • Date: 2014-04-21 20:19:41 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140421201941-vdr964wrn5miwzm4
* added gpump_app_dispose
* trying to figure out why GPumpApp needs to be freed thee times
* trying to figure out why GPumpSettingsData is not freed as it should...w

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
int main (int argc, char ** argv) {
16
16
  gtk_init (&argc, &argv);
17
17
  GPumpApp * app = gpump_app_new ();
18
 
  return g_application_run (G_APPLICATION (app), argc, argv);
 
18
  gint ret_val = g_application_run (G_APPLICATION (app), argc, argv);
 
19
  g_print ("First unref\n");
 
20
  g_object_unref (app);
 
21
  g_print ("Second unref\n");
 
22
  g_object_unref (app);
 
23
  g_print ("Third unref\n");
 
24
  g_object_unref (app);
 
25
  g_print ("Derp!\n");
 
26
  return ret_val;
19
27
}